// Fix PHP notice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17913 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -364,10 +364,8 @@ class CurrencyCore extends ObjectModel
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($rate))
|
||||
$rate = 1;
|
||||
|
||||
$this->conversion_rate = round($rate / $conversion_rate, 6);
|
||||
if (isset($rate))
|
||||
$this->conversion_rate = round($rate / $conversion_rate, 6);
|
||||
}
|
||||
$this->update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user