summaryrefslogtreecommitdiff
path: root/requirements/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'requirements/index.php')
-rw-r--r--requirements/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/requirements/index.php b/requirements/index.php
index 76b6356e..36ffac29 100644
--- a/requirements/index.php
+++ b/requirements/index.php
@@ -235,7 +235,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];