Merge pull request #26 from blakethepatton/master

php 8.1 compatibility
This commit is contained in:
David Saez Padros 2023-02-07 08:41:42 +01:00 committed by GitHub
commit c0997b4f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -802,7 +802,7 @@ $date = str_replace('/',' ',$date);
$date = str_replace("\t",' ',$date);
$parts = explode(' ',$date);
$res = false;
$res = [];
if ((strlen($parts[0]) == 8 || count($parts) == 1) && is_numeric($parts[0]))
{
@ -838,7 +838,7 @@ else
}
}
if (!$res) return $date;
if (empty($res)) return $date;
$ok = false;