diff --git includes/module.inc includes/module.inc index aa061e1..fc89cbc 100644 --- includes/module.inc +++ includes/module.inc @@ -165,7 +165,9 @@ function system_list($type) { $record->info = unserialize($record->info); // Build a list of all enabled modules. if ($record->type == 'module') { - $lists['module_enabled'][$record->name] = $record; + $module = new stdClass(); + $module->info = $record->info; + $lists['module_enabled'][$record->name] = $module; } // Build a list of themes. if ($record->type == 'theme') { diff --git modules/system/system.module modules/system/system.module index b5dfc54..67ce9bd 100644 --- modules/system/system.module +++ modules/system/system.module @@ -2307,7 +2307,7 @@ function system_get_info($type, $name = NULL) { } $list = system_list($type); foreach ($list as $shortname => $item) { - if (!empty($item->status)) { + if (!empty($item->status) || $type == 'module_enabled') { $info[$shortname] = $item->info; } }