From 6c0a137b0f1628cbdd5d24d7b74410fb8635a2bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Sun, 9 Aug 2015 23:58:43 -0400 Subject: [PATCH] Resolved notice when URL has no fragment. --- CRM/Event/Form/ManageEvent/TabHeader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/ManageEvent/TabHeader.php b/CRM/Event/Form/ManageEvent/TabHeader.php index 2597cb0dc6..f614e00785 100644 --- a/CRM/Event/Form/ManageEvent/TabHeader.php +++ b/CRM/Event/Form/ManageEvent/TabHeader.php @@ -227,7 +227,7 @@ WHERE e.id = %1 // PHP doesn't know about URL fragments (i.e, what comes after the #), so // we translate this to a URL param - $params['route'] = $urlParts['fragment']; + $params['route'] = CRM_Utils_Array::value('fragment', $urlParts); // Force the page to load as a snippet. This is being rendered in a tab, after all. $params['snippet'] = CRM_Core_Smarty::PRINT_SNIPPET; -- 2.25.1