Commit 9f1450c9 authored by drumm's avatar drumm

#71621 by keve, avoid an undefined variable

parent 2a89ab89
......@@ -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) {
......
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