aboutsummaryrefslogtreecommitdiffstats
path: root/admin/category/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/category/update.php')
-rw-r--r--admin/category/update.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/category/update.php b/admin/category/update.php
index c3d9812..80423c8 100644
--- a/admin/category/update.php
+++ b/admin/category/update.php
@@ -2,8 +2,8 @@
#===============================================================================
# DEFINE: Administration
#===============================================================================
-const ADMINISTRATION = TRUE;
-const AUTHENTICATION = TRUE;
+const ADMINISTRATION = true;
+const AUTHENTICATION = true;
#===============================================================================
# INCLUDE: Initialization
@@ -27,15 +27,15 @@ if(!$Category = $CategoryRepository->find(HTTP::GET('id'))) {
#===============================================================================
if(HTTP::issetPOST('update')) {
$Category->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name')));
- $Category->set('name', HTTP::POST('name') ?: NULL);
- $Category->set('body', HTTP::POST('body') ?: NULL);
- $Category->set('argv', HTTP::POST('argv') ?: NULL);
+ $Category->set('name', HTTP::POST('name') ?: null);
+ $Category->set('body', HTTP::POST('body') ?: null);
+ $Category->set('argv', HTTP::POST('argv') ?: null);
$Category->set('time_insert', HTTP::POST('time_insert') ?: date('Y-m-d H:i:s'));
$Category->set('time_update', HTTP::POST('time_update') ?: date('Y-m-d H:i:s'));
# Modify parent field only if it is not a self-reference
if(HTTP::POST('parent') != $Category->getID()) {
- $Category->set('parent', HTTP::POST('parent') ?: NULL);
+ $Category->set('parent', HTTP::POST('parent') ?: null);
}
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {