Permalink
Browse files

fix(pages): use elgg_extract to prevent php notice fetching parent_name

fixes #8558
  • Loading branch information...
jdalsem committed Apr 12, 2016
1 parent efa6395 commit c8710c9bea9963d5f1425ce670608aeed97b3ba9
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/pages/lib/pages.php
View
@@ -73,7 +73,7 @@ function pages_prepare_parent_breadcrumbs($page) {
/**
* Produce the navigation tree
- *
+ *
* @param ElggEntity $container Container entity for the pages
*
* @return array
@@ -134,7 +134,7 @@ function pages_get_navigation_tree($container) {
/**
* Register the navigation menu
- *
+ *
* @param ElggEntity $container Container entity for the pages
*/
function pages_register_navigation_tree($container) {
@@ -145,7 +145,7 @@ function pages_register_navigation_tree($container) {
'name' => $page['guid'],
'text' => $page['title'],
'href' => $page['url'],
- 'parent_name' => $page['parent_guid'],
+ 'parent_name' => elgg_extract('parent_guid', $page),
));
}
}

0 comments on commit c8710c9

Please sign in to comment.