From 62250377f7387b2cd6678697a59ea2781a0453ea Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Wed, 29 Nov 2006 23:16:51 +0000 Subject: [PATCH] Properly check if an array key exists. --- modules/menu/menu.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 358b5dbf94c..46ad75ca1db 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -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);