Browse Source

When wanting to use mb_strtoupper, test for the existence of that function
(couldn't send any mail anymore because I am lacking that function).

Thijs Kinkhorst 20 years ago
parent
commit
d492cf60ee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      functions/strings.php

+ 2 - 2
functions/strings.php

@@ -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();
-?>
+?>