* fixed some warning when you select unexisting country

This commit is contained in:
slawkens 2017-08-28 17:12:25 +02:00
parent 91c3b343e7
commit 97776d8f01

View File

@ -63,7 +63,7 @@ if($step == 'save')
$country = $_POST['country']; $country = $_POST['country'];
if(!isset($country)) if(!isset($country))
$errors['country'] = 'Country is not set'; $errors['country'] = 'Country is not set';
elseif(!$config['countries'][$country]) elseif(!isset($config['countries'][$country]))
$errors['country'] = 'Country is invalid.'; $errors['country'] = 'Country is invalid.';
} }