mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +05:30
Critical bugs #198 can't add link
This commit is contained in:
parent
c8b0d0661b
commit
b7d970a09a
1 changed files with 1 additions and 0 deletions
|
|
@ -478,6 +478,7 @@ post('/add/link', function () {
|
|||
$description = from($_REQUEST, 'description');
|
||||
$user = $_SESSION[config("site.url")]['user'];
|
||||
$draft = from($_REQUEST, 'draft');
|
||||
$category = from($_REQUEST, 'category');
|
||||
if ($proper && !empty($title) && !empty($tag) && !empty($content) && !empty($link)) {
|
||||
if (!empty($url)) {
|
||||
add_link($title, $tag, $url, $content, $user, $description, $link, $draft, $category);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue