summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-20 08:07:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-20 08:07:34 +0000
commit715255eab79eaa335298ab27a02521b5351bcfce (patch)
tree4d00374f8a948492a0359535b4c5c47f8b8d8db1
parenta4b0bb58a2a3ab04aca1953130e451bf27305ccb (diff)
downloadbrdo-715255eab79eaa335298ab27a02521b5351bcfce.tar.gz
brdo-715255eab79eaa335298ab27a02521b5351bcfce.tar.bz2
#268006 by pwolanin: Prevent hook_help() from appearing on 403 pages.
-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();