From a5691cccc95a2bb5a5c72f296d66e20e2e1a7c61 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Fri, 15 Oct 2004 10:47:54 +0000 Subject: [PATCH] - 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. --- includes/module.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/module.inc b/includes/module.inc index c244c23f9158..6c7ce15bbadc 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; } -- GitLab