Skip to content

Commit

Permalink
fixed: php notice when page alrady routed
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Jul 14, 2016
1 parent bced0c9 commit 86c45fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classes/ColdTrick/WidgetManager/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ class Router {
* @return boolean
*/
public static function routeIndex($hook_name, $entity_type, $return_value, $params) {

if (!is_array($return_value)) {
// someone else already routed this page
return;
}

// identifier will be empty for the index page
$identifier = elgg_extract('identifier', $return_value);
if (!empty($identifier)) {
Expand Down

0 comments on commit 86c45fe

Please sign in to comment.