Commit 18b6f8e6 by niskac

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

parent d5db49a0
......@@ -119,7 +119,7 @@ class BootCarousel extends CWidget
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();
......
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