projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unsetting an array element didn't re-index the array which caused a failure
[squirrelmail.git]
/
functions
/
imap_mailbox.php
diff --git
a/functions/imap_mailbox.php
b/functions/imap_mailbox.php
index a5a6277c7c6a2b28f3d18e021c3e27bcac0af244..3e14e7c3adcbe5b6b8bfcc46ebc1bb433ad11524 100755
(executable)
--- a/
functions/imap_mailbox.php
+++ b/
functions/imap_mailbox.php
@@
-823,6
+823,9
@@
function sqimap_mailbox_tree($imap_stream) {
// remove the result and request it again with a list
// response at a later stage.
unset($lsub_ary[$i]);
// remove the result and request it again with a list
// response at a later stage.
unset($lsub_ary[$i]);
+ // re-index the array otherwise the addition of the LIST
+ // response will fail in PHP 4.1.2 and probably other older versions
+ $lsub_ary = array_values($lsub_ary);
}
break;
}
}
break;
}