diff options
-rw-r--r-- | includes/menu.inc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index c2d932b64..9ce6cde32 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -100,16 +100,19 @@ function menu_get_active_title() { * Returns the help associated with the active menu item. */ function menu_get_active_help() { - $path = $_GET["q"]; - $output = ""; - $return = module_invoke_all("help", $path); - foreach ($return as $item) { - if (!empty($item)) { - $output .= $item ."\n"; + if (menu_active_handler_exists()) { + $path = $_GET["q"]; + $output = ""; + + $return = module_invoke_all("help", $path); + foreach ($return as $item) { + if (!empty($item)) { + $output .= $item ."\n"; + } } + return $output; } - return $output; } /** |