summaryrefslogtreecommitdiff
path: root/requirements
diff options
context:
space:
mode:
authorxue <>2006-11-09 22:30:54 +0000
committerxue <>2006-11-09 22:30:54 +0000
commitc42521aa777c2fe70624bbfa258fabefc3c98452 (patch)
treea0a7db5cfedc9292bafdc8aa53037b2fe1f6f297 /requirements
parent63b0c46594a8789b0644be47ec61cf2372cf5ff0 (diff)
fixed requirement checker about using ctype_alpha.
Diffstat (limited to 'requirements')
-rw-r--r--requirements/index.php2
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];