From: Frank J. Gómez Date: Mon, 10 Aug 2015 03:58:43 +0000 (-0400) Subject: Resolved notice when URL has no fragment. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c0a137b0f1628cbdd5d24d7b74410fb8635a2bc;p=civicrm-core.git Resolved notice when URL has no fragment. --- 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;