[-] Controller : ParentOrderController - Missing parenthesis

This commit is contained in:
Francois Gaillard
2013-12-02 09:26:04 +01:00
parent cd2246a9c3
commit 34d56ead85
+1 -1
View File
@@ -210,7 +210,7 @@ class ParentOrderControllerCore extends FrontController
$this->context->cart->gift = (int)(Tools::getValue('gift')); $this->context->cart->gift = (int)(Tools::getValue('gift'));
if ((int)(Tools::getValue('gift'))) if ((int)(Tools::getValue('gift')))
{ {
if (!Validate::isMessage(Tools::getValue('gift_message')) if (!Validate::isMessage(Tools::getValue('gift_message')))
$this->errors[] = Tools::displayError('Invalid gift message.'); $this->errors[] = Tools::displayError('Invalid gift message.');
else else
$this->context->cart->gift_message = strip_tags(Tools::getValue('gift_message')); $this->context->cart->gift_message = strip_tags(Tools::getValue('gift_message'));