From 76138ea8a603287b1af3baa7afd0efb5126656c1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 3 Jan 2009 08:45:28 +0000 Subject: - Patch #275796 by Gribnif, Damien Tournoud and Dave Reid: module_list() tried to reset a static using unset(). Added tests too. --- includes/module.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/module.inc b/includes/module.inc index c1355b3dd..962cd9ce3 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -47,8 +47,8 @@ function module_list($refresh = FALSE, $sort = FALSE, $fixed_list = NULL) { static $list = array(), $sorted_list; if (empty($list) || $refresh || $fixed_list) { - unset($sorted_list); $list = array(); + $sorted_list = NULL; if ($fixed_list) { foreach ($fixed_list as $name => $module) { drupal_get_filename('module', $name, $module['filename']); -- cgit v1.2.3