From fefdf75afc8054e3a2003687e75436219472dc93 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 10 Dec 2008 13:38:03 +0000 Subject: [PATCH] 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 10edebd11..6528f006f 100644 --- a/libraries/List_Database.class.php +++ b/libraries/List_Database.class.php @@ -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); }