mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
set date to current timestamp if $date passed to setDate() is false
This commit is contained in:
parent
6d01627553
commit
247e8b09ca
|
@ -330,7 +330,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||||
function setDate($date) { /* {{{ */
|
function setDate($date) { /* {{{ */
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
if(!$date)
|
if($date === false)
|
||||||
$date = time();
|
$date = time();
|
||||||
else {
|
else {
|
||||||
if(!is_numeric($date))
|
if(!is_numeric($date))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user