]> Raphaël G. Git Repositories - packbundle/commitdiff
Prevent float to int conversion warning
authorRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 15:02:14 +0000 (17:02 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 15:02:14 +0000 (17:02 +0200)
Util/ImageUtil.php

index a556dd86cf65ca526004abdfeb91faf2d379bfa6..8a93c5285f62916c99611f9b2edeea51b86ef015 100644 (file)
@@ -73,10 +73,10 @@ class ImageUtil {
                $a = $random % 10;
 
                //Set b
-               $b = $random / 10 % 10;
+               $b = intval($random / 10) % 10;
 
                //Set c
-               $c = $random / 100 % 10;
+               $c = intval($random / 100) % 10;
 
                //Set equation
                $equation = $a.' * '.$b.' + '.$c;