summaryrefslogtreecommitdiff
path: root/modules/help
diff options
context:
space:
mode:
Diffstat (limited to 'modules/help')
-rw-r--r--modules/help/help.test2
1 files changed, 1 insertions, 1 deletions
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'];