diff options
Diffstat (limited to 'admin/page/update.php')
-rw-r--r-- | admin/page/update.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/page/update.php b/admin/page/update.php index 8f6cb0e..e123205 100644 --- a/admin/page/update.php +++ b/admin/page/update.php @@ -2,8 +2,8 @@ #=============================================================================== # DEFINE: Administration #=============================================================================== -const ADMINISTRATION = TRUE; -const AUTHENTICATION = TRUE; +const ADMINISTRATION = true; +const AUTHENTICATION = true; #=============================================================================== # INCLUDE: Initialization @@ -29,9 +29,9 @@ if(!$Page = $PageRepository->find(HTTP::GET('id'))) { if(HTTP::issetPOST('update')) { $Page->set('user', HTTP::POST('user')); $Page->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name'))); - $Page->set('name', HTTP::POST('name') ?: NULL); - $Page->set('body', HTTP::POST('body') ?: NULL); - $Page->set('argv', HTTP::POST('argv') ?: NULL); + $Page->set('name', HTTP::POST('name') ?: null); + $Page->set('body', HTTP::POST('body') ?: null); + $Page->set('argv', HTTP::POST('argv') ?: null); $Page->set('time_insert', HTTP::POST('time_insert') ?: date('Y-m-d H:i:s')); $Page->set('time_update', HTTP::POST('time_update') ?: date('Y-m-d H:i:s')); |