small intToNum fix
[PHP-P10.git] / Uplink / Numerics.class.php
index 87cb6426f191b65bb67742ef8b96ebf434313ad5..943fc15ee365a6e6ba8192b1d8c0f87a7e3df426 100644 (file)
@@ -58,6 +58,7 @@ class Numerics {
                                $base = $base * self::$base64charsLength;
                        }
                        $posValue = floor($int / $base);
+                       $int -= $posValue * $base;
                        //get the char representing $posValue
                        $posChar = self::$base64chars[$posValue];
                        $numeric .= $posChar;