diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-29 23:16:51 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-29 23:16:51 +0000 |
commit | 62250377f7387b2cd6678697a59ea2781a0453ea (patch) | |
tree | 4b8ac9d5bd3049fd7d368c333a53437b5c694bd9 /modules | |
parent | 97dced2eea605dc2e508589d0f7a1bc1050fb480 (diff) | |
download | brdo-62250377f7387b2cd6678697a59ea2781a0453ea.tar.gz brdo-62250377f7387b2cd6678697a59ea2781a0453ea.tar.bz2 |
Properly check if an array key exists.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/menu/menu.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 358b5dbf9..46ad75ca1 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); |