diff --git a/includes/kernel.php b/includes/kernel.php index 61d8d668..eacde4bf 100644 --- a/includes/kernel.php +++ b/includes/kernel.php @@ -239,7 +239,7 @@ if (!CLI) User::save(); // save user-variables in session // hard override locale for this call (should this be here..?) - if (isset($_GET['locale']) && ($loc = Locale::tryFrom($_GET['locale']))) + if (isset($_GET['locale']) && ($loc = Locale::tryFrom((int)$_GET['locale']))) Lang::load($loc); else Lang::load(User::$preferedLoc);