Explorar o código

fix error mobile

stanley-king %!s(int64=4) %!d(string=hai) anos
pai
achega
345d2adbe3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      helper/refill/util.php

+ 1 - 1
helper/refill/util.php

@@ -15,7 +15,7 @@ class util
             "188","187","182","183","184","178","130","131","132","156","155","186","185",
             "176","133","153","189","180","181","177"];
 
-        $pos = mt_rand(0,count($prefix));
+        $pos = mt_rand(0,count($prefix) - 1);
         $no = "{$prefix[$pos]}" . mt_rand(10000000, 99999999);
 
         return $no;