Having an issue with displaying multi-select attribute options: the following code used in catalog/product/list.phtml works perfectly to display the selected attributes - but only if MORE THAN ONE option is selected - so if only one option from the multi select attribute is selected it doesn't display anything?
<?php
$targetValues = $_product->getAttributeText('ni_featured_logo_multi');
foreach($targetValues as $_target) :?>
<div class="featuredlogolist">
<span class="helper"></span>
<img src="<?php echo $this->getSkinUrl() ?>FEATURED_LOGOS/<?php echo $_target ?>.png" class="featuredlogo"></img>
</div>
<?php endforeach;
?>
This is true for for the product page as well ( code used in catalog/product/view.phtml )
<?php
$multiSelectArray = $this->getProduct ()->getAttributeText('ni_featured_logo_multi');
$lastItem = end ($multiSelectArray);
foreach ($multiSelectArray as $multiSelectItem) :?>
<img src="<?php echo $this->getSkinUrl() ?>FEATURED_LOGOS/<?php echo $multiSelectItem ?>.png" class="featuredlogo"></img>
<?php endforeach;
?>
any ideas on how to adjust call in order to have the multi select attribute display when only 1 option is selected ? thanks!