Properly check if an array key exists.

5.x
Neil Drumm 2006-11-29 23:16:51 +00:00
parent 97dced2eea
commit 62250377f7
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ function menu_parent_options($mid, $pid = 0, $depth = 0) {
}
// Add children of $pid to the list recursively.
if ($parent_item['children']) {
if (isset($parent_item['children'])) {
usort($parent_item['children'], '_menu_sort');
foreach ($parent_item['children'] as $child) {
$options += menu_parent_options($mid, $child, $depth);