From 97776d8f015a1b25f0158daa76274add0cfd81df Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 28 Aug 2017 17:12:25 +0200 Subject: [PATCH] * fixed some warning when you select unexisting country --- system/pages/createaccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/createaccount.php b/system/pages/createaccount.php index acf18d38..dec53ad8 100644 --- a/system/pages/createaccount.php +++ b/system/pages/createaccount.php @@ -63,7 +63,7 @@ if($step == 'save') $country = $_POST['country']; if(!isset($country)) $errors['country'] = 'Country is not set'; - elseif(!$config['countries'][$country]) + elseif(!isset($config['countries'][$country])) $errors['country'] = 'Country is invalid.'; }