Commit 62250377 authored by drumm's avatar drumm
Browse files

Properly check if an array key exists.

parent 97dced2e
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment