Fix undefined values in various modules

This commit is contained in:
Kijin Sung 2025-06-01 17:58:00 +09:00
parent 28de1335a7
commit 702eebaa92
6 changed files with 28 additions and 13 deletions

View file

@ -574,7 +574,7 @@ function zgap($timestamp = null): int
*/
function ztime($str): ?int
{
$len = strlen($str);
$len = strlen($str ?? '');
if (!$len)
{
return null;