Skip to content

Commit

Permalink
errorhandling for Tree::getMenuItems item url
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Stebe committed Jan 8, 2016
1 parent c0a1a46 commit e377e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public static function getMenuItems($rootName)

$itemTemplate = [
'label' => ($page->icon) ? '<i class="' . $page->icon . '"></i> ' . $page->name : $page->name,
'url' => $page->createUrl(),
'url' => ($page->createUrl()) ? $page->createUrl() : '',
'linkOptions' => $pageOptions,
];
$item = $itemTemplate;
Expand Down

0 comments on commit e377e85

Please sign in to comment.