Fix deprecation notices in PHP 8.2 #2064

This commit is contained in:
Kijin Sung 2023-01-16 21:24:59 +09:00
parent 8e2c4b3ef9
commit c07efe7905
7 changed files with 15 additions and 14 deletions

View file

@ -835,10 +835,10 @@ function handleError($errno, $errstr, $file, $line, $context)
function getNumberingPath($no, $size = 3)
{
$mod = pow(10, $size);
$output = sprintf('%0' . $size . 'd/', $no % $mod);
$output = sprintf('%0' . $size . 'd/', intval($no % $mod));
if($no >= $mod)
{
$output .= getNumberingPath((int)$no / $mod, $size);
$output .= getNumberingPath(intval($no / $mod), $size);
}
return $output;
}