diff options
author | xue <> | 2006-11-09 22:30:54 +0000 |
---|---|---|
committer | xue <> | 2006-11-09 22:30:54 +0000 |
commit | c42521aa777c2fe70624bbfa258fabefc3c98452 (patch) | |
tree | a0a7db5cfedc9292bafdc8aa53037b2fe1f6f297 /requirements | |
parent | 63b0c46594a8789b0644be47ec61cf2372cf5ff0 (diff) |
fixed requirement checker about using ctype_alpha.
Diffstat (limited to 'requirements')
-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];
|