From 6edd56ec39ce3654d669534855979aa2adbba15a Mon Sep 17 00:00:00 2001 From: dignajar Date: Thu, 12 Nov 2015 22:25:59 -0300 Subject: [PATCH] Page date --- kernel/dbpages.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/dbpages.class.php b/kernel/dbpages.class.php index 410553ad..9cf55dd1 100644 --- a/kernel/dbpages.class.php +++ b/kernel/dbpages.class.php @@ -11,7 +11,7 @@ class dbPages extends dbJSON 'username'=> array('inFile'=>false, 'value'=>''), 'tags'=> array('inFile'=>false, 'value'=>array()), 'status'=> array('inFile'=>false, 'value'=>'draft'), - 'date'=> array('inFile'=>false, 'value'=>0), + 'date'=> array('inFile'=>false, 'value'=>''), 'position'=> array('inFile'=>false, 'value'=>0) ); @@ -34,9 +34,7 @@ class dbPages extends dbJSON } // Current date. - if(empty($args['date'])) { - $args['date'] = Date::current(DB_DATE_FORMAT); - } + $args['date'] = Date::current(DB_DATE_FORMAT); // Verify arguments with the database fields. foreach($this->dbFields as $field=>$options)