Resolved notice when URL has no fragment.
authorFrank J. Gómez <frank@ginkgostreet.com>
Mon, 10 Aug 2015 03:58:43 +0000 (23:58 -0400)
committerFrank J. Gómez <frank@ginkgostreet.com>
Mon, 10 Aug 2015 03:58:43 +0000 (23:58 -0400)
CRM/Event/Form/ManageEvent/TabHeader.php

index 2597cb0dc652ec249998ff4a91fbb1664d08d498..f614e0078511033bb98bdb9fd4202bee2bbcbcfb 100644 (file)
@@ -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;