diff --git a/libraries/List_Database.class.php b/libraries/List_Database.class.php index 658057f36..a739df9d3 100644 --- a/libraries/List_Database.class.php +++ b/libraries/List_Database.class.php @@ -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); }