// Fix PHP notice

This commit is contained in:
rGaillard committed 2012-10-22 18:21:40 +00:00
1 parent b8d5e415ff
commit d67255c28d
1 file changed
+2 -4
+2 -4
View File
@@ -364,10 +364,8 @@ class CurrencyCore extends ObjectModel
} }
} }
if (!isset($rate)) 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();
} }