diff options
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/install.php b/install.php index 5a76f1bb4..334648896 100644 --- a/install.php +++ b/install.php @@ -554,9 +554,11 @@ function install_select_locale($profilename) { } } - foreach ($locales as $locale) { - if ($_POST['locale'] == $locale->name) { - return $locale->name; + if (!empty($_POST['locale'])) { + foreach ($locales as $locale) { + if ($_POST['locale'] == $locale->name) { + return $locale->name; + } } } |