From f6ea00173e13a5f14df7e40bc80fed4945545aff Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 25 Dec 2008 14:00:56 +0000 Subject: [PATCH] backport rev 12128 (should fix: Array was modified outside object and internal position is no longer valid) --- libraries/List_Database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }