Merge pull request #26 from blakethepatton/master
php 8.1 compatibility
This commit is contained in:
commit
c0997b4f51
1 changed files with 2 additions and 2 deletions
|
@ -802,7 +802,7 @@ $date = str_replace('/',' ',$date);
|
||||||
$date = str_replace("\t",' ',$date);
|
$date = str_replace("\t",' ',$date);
|
||||||
|
|
||||||
$parts = explode(' ',$date);
|
$parts = explode(' ',$date);
|
||||||
$res = false;
|
$res = [];
|
||||||
|
|
||||||
if ((strlen($parts[0]) == 8 || count($parts) == 1) && is_numeric($parts[0]))
|
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;
|
$ok = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue