diff options
Diffstat (limited to 'phpBB/includes/functions_jabber.php')
| -rw-r--r-- | phpBB/includes/functions_jabber.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php index a679b1508a..f1e7b130f0 100644 --- a/phpBB/includes/functions_jabber.php +++ b/phpBB/includes/functions_jabber.php @@ -389,7 +389,7 @@ class jabber { $temp = $this->_split_incoming($incoming); - for ($a = 0; $a < count($temp); $a++) + for ($a = 0, $size = sizeof($temp); $a < $size; $a++) { $this->packet_queue[] = $this->xmlize($temp[$a]); } @@ -957,7 +957,7 @@ class make_xml extends jabber $temp = @explode('/', $string); - for ($a = 0; $a < count($temp); $a++) + for ($a = 0, $size = sizeof($temp); $a < $size; $a++) { $temp[$a] = preg_replace('#^[@]{1}([a-z0-9_]*)$#i', '["@"]["\1"]', $temp[$a]); $temp[$a] = preg_replace('#^([a-z0-9_]*)\(([0-9]*)\)$/i', '["\1"][\2]', $temp[$a]); @@ -1001,7 +1001,7 @@ class make_xml extends jabber } elseif (is_array($value)) { - for ($a = 0; $a < count($value); $a++) + for ($a = 0, $size = sizeof($value); $a < $size; $a++) { $text .= "<$key"; |
