// Fixed 'Nesting level .. too deep recursive dependency' error
This commit is contained in:
+1
-1
@@ -516,7 +516,7 @@ class ToolsCore
|
|||||||
*/
|
*/
|
||||||
public static function convertPriceFull($amount, Currency $currency_from = null, Currency $currency_to = null)
|
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;
|
return $amount;
|
||||||
|
|
||||||
if ($currency_from === null)
|
if ($currency_from === null)
|
||||||
|
|||||||
Reference in New Issue
Block a user