diff --git a/classes/Country.php b/classes/Country.php index a2990ac09..dd79ae914 100644 --- a/classes/Country.php +++ b/classes/Country.php @@ -380,7 +380,7 @@ class CountryCore extends ObjectModel $zip_regexp = str_replace('L', '[a-zA-Z]', $zip_regexp); $zip_regexp = str_replace('C', $this->iso_code, $zip_regexp); - return (bool)preg_match($zip_regexp, $zip_code); + return (bool)preg_match($zip_regexp, (string) $zip_code); } public static function addModuleRestrictions(array $shops = array(), array $countries = array(), array $modules = array())