aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--upgrade.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/upgrade.php b/upgrade.php
index 43cf70b7a..ea0bbe516 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -154,6 +154,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
{