From: pk910 Date: Thu, 28 Jul 2011 09:15:40 +0000 (+0200) Subject: small intToNum fix X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=71975117e375053f6ec4814d3609617aa30ee66f small intToNum fix --- diff --git a/Uplink/Numerics.class.php b/Uplink/Numerics.class.php index 87cb642..943fc15 100644 --- a/Uplink/Numerics.class.php +++ b/Uplink/Numerics.class.php @@ -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;