backport rev 12128 (should fix: Array was modified outside object and internal position is no longer valid)

This commit is contained in:
Marc Delisle
2008-12-25 14:00:56 +00:00
parent 643f8c9bf7
commit f6ea00173e

View File

@@ -86,7 +86,7 @@ require_once './libraries/List.class.php';
return;
}
foreach ($this as $key => $db) {
foreach ($this->getArrayCopy() as $key => $db) {
if (preg_match('/' . $GLOBALS['cfg']['Server']['hide_db'] . '/', $db)) {
$this->offsetUnset($key);
}