]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Util/ImageUtil.php
Prevent float to int conversion warning
[packbundle] / 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;