diff options
Diffstat (limited to 'admin/post')
-rw-r--r-- | admin/post/insert.php | 2 | ||||
-rw-r--r-- | admin/post/update.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/post/insert.php b/admin/post/insert.php index bad55ae..1a8cac7 100644 --- a/admin/post/insert.php +++ b/admin/post/insert.php @@ -25,7 +25,7 @@ $Post = new ORM\Entities\Post; #=============================================================================== # Check for insert request #=============================================================================== -if(HTTP::issetPOST('category', 'user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) { +if(HTTP::issetPOST('insert')) { $Post->set('category', HTTP::POST('category') ?: NULL); $Post->set('user', HTTP::POST('user')); $Post->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name'))); diff --git a/admin/post/update.php b/admin/post/update.php index e68b3ec..b35c379 100644 --- a/admin/post/update.php +++ b/admin/post/update.php @@ -27,7 +27,7 @@ if(!$Post = $PostRepository->find(HTTP::GET('id'))) { #=============================================================================== # Check for update request #=============================================================================== -if(HTTP::issetPOST('category', 'user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'update')) { +if(HTTP::issetPOST('update')) { $Post->set('category', HTTP::POST('category') ?: NULL); $Post->set('user', HTTP::POST('user')); $Post->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name'))); |