Commits

Christoffer Niska committed d420327

changed BootCarousel to not display the caption when it is not set

Comments (0)

Files changed (1)

widgets/BootCarousel.php

 				echo CHtml::image($item['image'], $item['alt'], $item['imageOptions']);
 			}
 
-			if (isset($item['label']) || isset($item['caption']))
+			if (!empty($item['caption']) && (isset($item['label']) || isset($item['caption'])))
 			{
 				if (!isset($item['captionOptions']))
 					$item['captionOptions'] = array();