small intToNum fix
authorpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 09:15:40 +0000 (11:15 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 09:15:40 +0000 (11:15 +0200)
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;