diff options
-rw-r--r-- | pear/PEAR/Remote.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index ffc7af2fe4..353f94ff88 100644 --- a/pear/PEAR/Remote.php +++ b/pear/PEAR/Remote.php @@ -290,7 +290,8 @@ class PEAR_Remote extends PEAR ($lastkey + 1) == count($php_val)) { $is_continous = true; reset($php_val); - for ($expect = 0; $expect < count($php_val); $expect++) { + $size = count($php_val); + for ($expect = 0; $expect < $size; $expect++, next($php_val)) { if (key($php_val) !== $expect) { $is_continous = false; break; |