Index: module.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/module.inc,v retrieving revision 1.116 diff -u -p -r1.116 module.inc --- module.inc 14 Apr 2008 17:48:33 -0000 1.116 +++ module.inc 15 Apr 2008 19:26:13 -0000 @@ -44,10 +44,10 @@ function module_iterate($function, $argu * An associative array whose keys and values are the names of all loaded * modules. */ -function module_list($refresh = FALSE, $bootstrap = TRUE, $sort = FALSE, $fixed_list = NULL) { +function module_list($refresh = FALSE, $bootstrap = FALSE, $sort = FALSE, $fixed_list = NULL) { static $list, $sorted_list; - if ($refresh || $fixed_list) { + if ($refresh || $fixed_list || !is_array($list)) { unset($sorted_list); $list = array(); if ($fixed_list) {