From 715255eab79eaa335298ab27a02521b5351bcfce Mon Sep 17 00:00:00 2001 From: Angie Byron <webchick@24967.no-reply.drupal.org> Date: Sat, 20 Sep 2008 08:07:34 +0000 Subject: [PATCH] #268006 by pwolanin: Prevent hook_help() from appearing on 403 pages. --- includes/menu.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/menu.inc b/includes/menu.inc index d5707b027e85..95ec71e59506 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(); -- GitLab