]> git.mxchange.org Git - friendica.git/commitdiff
move mb_strlen call out of for loop definition
authorZach Prezkuta <fermion@gmx.com>
Tue, 5 Feb 2013 03:17:56 +0000 (20:17 -0700)
committerZach Prezkuta <fermion@gmx.com>
Tue, 5 Feb 2013 03:17:56 +0000 (20:17 -0700)
include/text.php

index d1fff85ea358f7cc866976063eefd3d09047e860..7163a664042f252021dde6ad6cb674b16c462b25 100644 (file)
@@ -175,7 +175,8 @@ if(! function_exists('xmlify')) {
 function xmlify($str) {
        $buffer = '';
        
-       for($x = 0; $x < mb_strlen($str); $x ++) {
+       $len = mb_strlen($str);
+       for($x = 0; $x < $len; $x ++) {
                $char = $str[$x];
         
                switch( $char ) {