should fix: Array was modified outside object and internal position is no longer valid

This commit is contained in:
Sebastian Mendel
2008-12-10 13:38:03 +00:00
parent b5ff34658b
commit fefdf75afc

View File

@@ -88,7 +88,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);
}