diff options
author | filip <filip.komar@gmail.com> | 2016-06-13 01:21:04 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-06-13 01:21:04 +0200 |
commit | 89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83 (patch) | |
tree | 1074c62cc16cc42a8b8e0a0902d66d82342cff33 | |
parent | 01adeed1e82e1689e4208a2dee8074517ac64eef (diff) | |
download | www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar.gz www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar.bz2 www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar.xz www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.zip |
get rid of one warning
-rw-r--r-- | localeDetection.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/localeDetection.class.php b/localeDetection.class.php index d2a3a089d..13ae82bad 100644 --- a/localeDetection.class.php +++ b/localeDetection.class.php @@ -58,7 +58,8 @@ class ChooseLocale foreach ($acclang as $var) { $locale = $this -> _cleanHTTPlocaleCode($var); - $shortLocale = array_shift(explode('-', $locale)); + $exploded_locale = explode('-', $locale); + $shortLocale = array_shift($exploded_locale); if (in_array($locale, $this -> supportedLocales)) { $l = $locale; |