When wanting to use mb_strtoupper, test for the existence of that function
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Mar 2005 13:16:05 +0000 (13:16 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Mar 2005 13:16:05 +0000 (13:16 +0000)
(couldn't send any mail anymore because I am lacking that function).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9153 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 84a70af4025bb2b7bed8385b016d52f2d9de62ca..bd17965a1a74f65dad86d6e3354a5b7e701c6acb 100644 (file)
@@ -1240,7 +1240,7 @@ function sq_strtoupper($string,$charset='auto') {
         $charset=$default_charset;
     }
     $charset = strtolower($charset);
-    if (function_exists('mb_internal_encoding') && 
+    if (function_exists('mb_strtoupper') && 
         in_array($charset,sq_mb_list_encodings())) {
         return mb_strtoupper($string,$charset);
     }
@@ -1250,4 +1250,4 @@ function sq_strtoupper($string,$charset='auto') {
     return strtoupper($string);
 }
 $PHP_SELF = php_self();
-?>
\ No newline at end of file
+?>