#71621 by keve, avoid an undefined variable

5.x
Neil Drumm 2006-07-02 18:47:09 +00:00
parent 2a89ab89f9
commit 9f1450c989
1 changed files with 1 additions and 0 deletions

View File

@ -853,6 +853,7 @@ function menu_primary_links($start_level = 1, $pid = 0) {
}
$menu = menu_get_menu();
$links = array();
if ($pid && is_array($menu['visible'][$pid]) && isset($menu['visible'][$pid]['children'])) {
$count = 1;
foreach ($menu['visible'][$pid]['children'] as $cid) {