Skip to content

Commit 1b7771d

Browse files
committed
closes #466
1 parent e84877a commit 1b7771d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

global/code/Hooks.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public static function processTemplateHookCalls($location, $template_vars, $all_
273273
// extract the var passed from the calling function into the current scope
274274
foreach ($hooks as $hook_info) {
275275
$module_folder = $hook_info["module_folder"];
276-
if (!Modules::checkModuleEnabled($module_folder)) {
276+
if (!Modules::isValidModule($module_folder) || !Modules::checkModuleEnabled($module_folder)) {
277277
continue;
278278
}
279279

0 commit comments

Comments
 (0)