diff --git a/class/class.docs.php b/class/class.docs.php index a893213..a9df968 100644 --- a/class/class.docs.php +++ b/class/class.docs.php @@ -43,7 +43,7 @@ { $published = explode(".", $_REQUEST['document_published']); - $timestamp = time(0); + $timestamp = time(); if (! empty($published[0])) { @@ -57,7 +57,7 @@ ); } - return ($timestamp==time(0) + return ($timestamp==time() ? '' : $timestamp); } @@ -73,7 +73,7 @@ { $expire = explode(".", $_REQUEST['document_expire']); - $timestamp = time(0); + $timestamp = time(); if (! empty($expire[0])) { @@ -86,7 +86,7 @@ $expire[2] ); } - return ($timestamp == time(0) ? '' : $timestamp); + return ($timestamp == time() ? '' : $timestamp); } /**