Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop

This commit is contained in:
root 2017-07-18 10:19:01 +02:00
commit a993b2b36f

View File

@ -310,7 +310,7 @@ class CartController extends CartControllerCore
self::$cart->gift_message = '';
} elseif(Tools::getValue('action') == 'add_message'){
self::$cart->gift = 1;
if (!Validate::isMessage(Tools::getValue('message')) {
if (!Validate::isMessage(Tools::getValue('message'))) {
die('{"hasError" : true, "errors" : ["'.Tools::displayError('Invalid gift message.', false).'"]}');
} else {
self::$cart->gift_message = strip_tags(Tools::getValue('message'));