1. Christoffer Niska
  2. yii-bootstrap

Commits

Christoffer Niska  committed 752eeda Merge

Merged in LegosX/yii-bootstrap2/bootstrap2 (pull request #6)

  • Participants
  • Parent commits 8860835, 0509189
  • Branches bootstrap2

Comments (0)

Files changed (1)

File bootstrap/widgets/BootNavbar.php

View file
 		echo CHtml::openTag('div', $this->htmlOptions);
 		echo '<div class="navbar-inner"><div class="'.$containerCssClass.'">';
 		echo '<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>';
-		echo CHtml::openTag('a', $this->brandOptions).$this->brand.'</a>';
+
+        if ($this->brand)
+            echo CHtml::openTag('a', $this->brandOptions).$this->brand.'</a>';
+        
 		echo '<div class="nav-collapse">';
 
 		foreach ($this->items as $item)