diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-03 08:45:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-03 08:45:28 +0000 |
commit | 76138ea8a603287b1af3baa7afd0efb5126656c1 (patch) | |
tree | 9120bf2adb6680354e41011b08f7d1f02eb329a8 /includes/module.inc | |
parent | f9f7c7bccf25eaca5e94e0f4658b218e59d0ddea (diff) | |
download | brdo-76138ea8a603287b1af3baa7afd0efb5126656c1.tar.gz brdo-76138ea8a603287b1af3baa7afd0efb5126656c1.tar.bz2 |
- Patch #275796 by Gribnif, Damien Tournoud and Dave Reid: module_list() tried to reset a static using unset(). Added tests too.
Diffstat (limited to 'includes/module.inc')
-rw-r--r-- | includes/module.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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']); |