From f10d2c07bbc6d9c28d23bed460c8a441f8c09ded Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 16 Jan 2012 15:50:44 +0000 Subject: [PATCH] // Fixed 'Nesting level .. too deep recursive dependency' error --- classes/Tools.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/classes/Tools.php b/classes/Tools.php index 27d672ad3..a6e5c059e 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -417,7 +417,7 @@ class ToolsCore // if you modified this function, don't forget to modify the Javascript function formatCurrency (in tools.js) elseif (is_int($currency)) $currency = Currency::getCurrencyInstance((int)($currency)); - + if (is_array($currency)) { $c_char = $currency['sign']; @@ -434,7 +434,7 @@ class ToolsCore } else return false; - + $blank = ($c_blank ? ' ' : ''); $ret = 0; if (($isNegative = ($price < 0))) @@ -516,7 +516,7 @@ class ToolsCore */ public static function convertPriceFull($amount, Currency $currency_from = null, Currency $currency_to = null) { - if ($currency_from == $currency_to) + if ($currency_from === $currency_to) return $amount; if ($currency_from === null) @@ -1245,9 +1245,9 @@ class ToolsCore * returns the rounded value of $value to specified precision, according to your configuration; * * @note : PHP 5.3.0 introduce a 3rd parameter mode in round function - * - * @param float $value - * @param int $precision + * + * @param float $value + * @param int $precision * @return float */ public static function ps_round($value, $precision = 0) @@ -1262,9 +1262,9 @@ class ToolsCore /** * returns the rounded value down of $value to specified precision - * - * @param float $value - * @param int $precision + * + * @param float $value + * @param int $precision * @return float */ public static function ceilf($value, $precision = 0) @@ -1282,9 +1282,9 @@ class ToolsCore /** * returns the rounded value up of $value to specified precision - * - * @param float $value - * @param int $precision + * + * @param float $value + * @param int $precision * @return float */ public static function floorf($value, $precision = 0)