// 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:
rGaillard
2012-10-22 18:21:40 +00:00
parent 30d98d55a7
commit adcfaaa456

View File

@@ -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();
}