Commits

Christoffer Niska committed 565d046

changed BootMenu to not set a default type

Comments (0)

Files changed (1)

widgets/BootMenu.php

 	 * @var string the menu type.
 	 * Valid values are '', 'tabs' and 'pills'. Defaults to ''.
 	 */
-	public $type = self::TYPE_UNSTYLED;
+	public $type;
 	/**
 	 * @var boolean whether to stack navigation items.
 	 */
 
 		$classes = array('nav');
 
-		$validTypes = array(self::TYPE_UNSTYLED, self::TYPE_TABS, self::TYPE_PILLS, self::TYPE_LIST);
+		$validTypes = array(self::TYPE_TABS, self::TYPE_PILLS, self::TYPE_LIST);
 
-		if (!empty($this->type) && in_array($this->type, $validTypes))
+		if (isset($this->type) && in_array($this->type, $validTypes))
 			$classes[] = 'nav-'.$this->type;
 
 		if ($this->type !== self::TYPE_LIST && $this->stacked)
 				continue;
 			}
 
-			if (!is_array($item)) {
-				continue;
-			}
-
 			if (!isset($item['label']))
 				$item['label'] = '';