фиксим time(); - поиск документов давал ошибку. встроенная PHP-функция time() не принимает аргументов в PHP 8.4
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user