mirror of
https://github.com/friendica/friendica
synced 2024-11-14 05:02:54 +00:00
move mb_strlen call out of for loop definition
This commit is contained in:
parent
9dbe7efce5
commit
b6bc7daadf
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,8 @@ if(! function_exists('xmlify')) {
|
||||||
function xmlify($str) {
|
function xmlify($str) {
|
||||||
$buffer = '';
|
$buffer = '';
|
||||||
|
|
||||||
for($x = 0; $x < mb_strlen($str); $x ++) {
|
$len = mb_strlen($str);
|
||||||
|
for($x = 0; $x < $len; $x ++) {
|
||||||
$char = $str[$x];
|
$char = $str[$x];
|
||||||
|
|
||||||
switch( $char ) {
|
switch( $char ) {
|
||||||
|
|
Loading…
Reference in a new issue