summaryrefslogtreecommitdiff
path: root/includes/menu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/menu.inc')
-rw-r--r--includes/menu.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index d5707b027..95ec71e59 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1211,6 +1211,10 @@ function drupal_help_arg($arg = array()) {
function menu_get_active_help() {
$output = '';
$router_path = menu_tab_root_path();
+ // We will always have a path unless we are on a 403 or 404.
+ if (!$router_path) {
+ return '';
+ }
$arg = drupal_help_arg(arg(NULL));
$empty_arg = drupal_help_arg();