php 8.1 compatibility as outlined by offsky

This commit is contained in:
Blake 2023-02-06 13:16:37 -08:00
parent 6cd5261a7d
commit 3b74c769f8
No known key found for this signature in database
GPG key ID: 8A0FEE99465217EB

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;