фиксим time(); - поиск документов давал ошибку. встроенная PHP-функция time() не принимает аргументов в PHP 8.4

This commit is contained in:
2025-10-27 16:04:03 +05:00
parent 5600f8c9ed
commit 71329f19b8

View File

@@ -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);
}
/**