[-] CORE : Fix warning #PSCFV-9678 when sending message to customer
This commit is contained in:
1 parent
a36ac7784d
commit
4185026880
1 file changed
+1
-1
@@ -174,7 +174,7 @@ class ValidateCore
|
|||||||
*/
|
*/
|
||||||
public static function isMailName($mail_name)
|
public static function isMailName($mail_name)
|
||||||
{
|
{
|
||||||
return preg_match(Tools::cleanNonUnicodeSupport('/^[^<>;=#{}]*$/u'), $mail_name);
|
return (is_string($module_name) && preg_match(Tools::cleanNonUnicodeSupport('/^[^<>;=#{}]*$/u'), $mail_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user