fix hook
This commit is contained in:
parent
975c490261
commit
ba8fa44d2f
@ -163,8 +163,6 @@ class ContactController extends ContactControllerCore {
|
||||
$ct->add();
|
||||
}
|
||||
|
||||
Module::hookExec('ant_alert', array());
|
||||
|
||||
if ($ct->id)
|
||||
{
|
||||
$cm = new CustomerMessage();
|
||||
@ -188,6 +186,9 @@ class ContactController extends ContactControllerCore {
|
||||
else
|
||||
$this->errors[] = Tools::displayError('An error occurred while sending message.');
|
||||
}
|
||||
|
||||
Module::hookExec('ant_alert', array());
|
||||
|
||||
if (count($this->errors) > 1)
|
||||
array_unique($this->errors);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user