From d328258eecce07bd38e2fa6f4425a5fc71f18261 Mon Sep 17 00:00:00 2001 From: amit sharma Date: Thu, 22 Oct 2026 18:19:13 +0530 Subject: [PATCH] Fixed: Error on Account Creation Page When Submitting an Empty Registration Form Co-authored-by: Name --- classes/Country.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())