From 09919944a7c12708614c27c75f7b3d026469674d Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 28 Jan 2026 20:46:30 +0900 Subject: [PATCH] Prevent type error when non-integer input passed to getNumberingPath() --- common/legacy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common/legacy.php b/common/legacy.php index b6d962890..ba25076a4 100644 --- a/common/legacy.php +++ b/common/legacy.php @@ -875,6 +875,7 @@ function getDestroyXeVars($vars) */ function getNumberingPath($no, int $size = 3): string { + $no = intval($no); $mod = pow(10, $size); $output = sprintf('%0' . $size . 'd/', intval($no % $mod)); if($no >= $mod)