// Fix PHP notice

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17912 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard committed 2012-10-22 18:19:07 +00:00
1 parent 6c33c2d722
commit 30d98d55a7
1 file changed
+3
+3
View File
@@ -364,6 +364,9 @@ class CurrencyCore extends ObjectModel
} }
} }
if (!isset($rate))
$rate = 1;
$this->conversion_rate = round($rate / $conversion_rate, 6); $this->conversion_rate = round($rate / $conversion_rate, 6);
} }
$this->update(); $this->update();