mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Prevent type error when non-integer input passed to getNumberingPath()
This commit is contained in:
parent
c1942080e7
commit
09919944a7
1 changed files with 1 additions and 0 deletions
|
|
@ -875,6 +875,7 @@ function getDestroyXeVars($vars)
|
||||||
*/
|
*/
|
||||||
function getNumberingPath($no, int $size = 3): string
|
function getNumberingPath($no, int $size = 3): string
|
||||||
{
|
{
|
||||||
|
$no = intval($no);
|
||||||
$mod = pow(10, $size);
|
$mod = pow(10, $size);
|
||||||
$output = sprintf('%0' . $size . 'd/', intval($no % $mod));
|
$output = sprintf('%0' . $size . 'd/', intval($no % $mod));
|
||||||
if($no >= $mod)
|
if($no >= $mod)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue