From 71329f19b8fee31805b1ad841c5af6e172238349 Mon Sep 17 00:00:00 2001 From: Repellent Date: Mon, 27 Oct 2025 16:04:03 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D0=B8=D0=BC=20time();?= =?UTF-8?q?=20-=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D0=B4=D0=BE=D0=BA?= =?UTF-8?q?=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B4=D0=B0=D0=B2?= =?UTF-8?q?=D0=B0=D0=BB=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D1=83.=20=D0=B2?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BD=D0=BD=D0=B0=D1=8F=20PHP-?= =?UTF-8?q?=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F=20time()=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=B8=D0=BD=D0=B8=D0=BC=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=B2=20PHP=208.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/class.docs.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } /**