diff options
Diffstat (limited to 'inc/utf8.php')
-rw-r--r-- | inc/utf8.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/utf8.php b/inc/utf8.php index 50a9556ee..3bc6b9a2d 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -225,7 +225,8 @@ function utf8_strtolower($string){ global $UTF8_UPPER_TO_LOWER; $uni = utf8_to_unicode($string); - for ($i=0; $i < count($uni); $i++){ + $cnt = count($uni); + for ($i=0; $i < $cnt; $i++){ if($UTF8_UPPER_TO_LOWER[$uni[$i]]){ $uni[$i] = $UTF8_UPPER_TO_LOWER[$uni[$i]]; } @@ -248,7 +249,8 @@ function utf8_strtoupper($string){ global $UTF8_LOWER_TO_UPPER; $uni = utf8_to_unicode($string); - for ($i=0; $i < count($uni); $i++){ + $cnt = count($uni); + for ($i=0; $i < $cnt; $i++){ if($UTF8_LOWER_TO_UPPER[$uni[$i]]){ $uni[$i] = $UTF8_LOWER_TO_UPPER[$uni[$i]]; } |