summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-20 03:18:41 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-20 03:18:41 +0000
commitfcc8211ab1331a4c6fa501d6b1a23e3c82c75423 (patch)
tree380cde4e8b5f5f723a1830e1511333d29abd3622 /install.php
parent0ec23b9b431108365bba4792e034a0f151e88ddc (diff)
downloadbrdo-fcc8211ab1331a4c6fa501d6b1a23e3c82c75423.tar.gz
brdo-fcc8211ab1331a4c6fa501d6b1a23e3c82c75423.tar.bz2
#203323 by JirkaRybka, robertgarrigos, thePanz, c960657, and sun: Fix undefined index locale in install.php and clean up crufty code.
Diffstat (limited to 'install.php')
-rw-r--r--install.php8
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;
+ }
}
}