From 6b07c32e80b3d2fd7d7dd8db73e237f6f4c6aabf Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 8 Mar 2009 03:39:57 +0000 Subject: #394460 by Crell: DBTNGify Help module. --- modules/help/help.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/help') diff --git a/modules/help/help.test b/modules/help/help.test index 64e960180..0c833f4e3 100644 --- a/modules/help/help.test +++ b/modules/help/help.test @@ -74,7 +74,7 @@ class HelpTestCase extends DrupalWebTestCase { private function getModuleList() { $this->modules = array(); $result = db_query("SELECT name, filename, info FROM {system} WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC"); - while ($module = db_fetch_object($result)) { + foreach ($result as $module) { if (file_exists($module->filename)) { $fullname = unserialize($module->info); $this->modules[$module->name] = $fullname['name']; -- cgit v1.2.3