diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-10-15 10:47:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-10-15 10:47:54 +0000 |
commit | a5691cccc95a2bb5a5c72f296d66e20e2e1a7c61 (patch) | |
tree | 1c0de3cfad6d0b8b6523d8d2c4ce52981138f2b2 /includes/module.inc | |
parent | dfb3c3aec4f6171b814a4055635937e9d7109ab3 (diff) | |
download | brdo-a5691cccc95a2bb5a5c72f296d66e20e2e1a7c61.tar.gz brdo-a5691cccc95a2bb5a5c72f296d66e20e2e1a7c61.tar.bz2 |
- Patch #11600 by jhriggs: the module_load_all() function will currently behave unexpectedly if a module cannot be found (has been removed, renamed, etc). Once one module fails to load, all subsequent modules will not be loaded due to a short circuit condition when performing a boolean AND.
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 c244c23f9..6c7ce15bb 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -149,7 +149,7 @@ function module_load_all() { $list = module_list(); $status = true; foreach ($list as $module) { - $status = $status && module_load($module); + $status &= module_load($module); } return $status; } |