diff --git a/menu_block.module b/menu_block.module index 45983a4..5c714d8 100644 --- a/menu_block.module +++ b/menu_block.module @@ -671,7 +671,7 @@ function menu_block_tree_output(&$tree, $config = array()) { $class[] = 'last'; } // Set a class if the link has children. - if ($data['below']) { + if ($data['link']['has_children'] && $data['below']) { $class[] = 'expanded'; } elseif ($data['link']['has_children']) {