aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/upgrade.php b/upgrade.php
index 55f2acf5a..dfb3c4c36 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -142,6 +142,11 @@ $languages = new languages('utf-8');
if (isset($_GET['language']))
{
$language = strip_tags($_GET['language']);
+
+ if (!in_array($language, array_keys($languages->fs_languages)))
+ {
+ $language = PHPWG_DEFAULT_LANGUAGE;
+ }
}
else
{