diff options
-rw-r--r-- | requirements/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requirements/index.php b/requirements/index.php index 2fbbcc48..d9a68dac 100644 --- a/requirements/index.php +++ b/requirements/index.php @@ -229,7 +229,7 @@ function getPreferredLanguage() {
$langs=getUserLanguages();
$lang=explode('-',$langs[0]);
- if(empty($lang[0]) || !ctype_alpha($lang[0]))
+ if(empty($lang[0]) || !function_exists('ctype_alpha') || !ctype_alpha($lang[0]))
$language='en';
else
$language=$lang[0];
|