I have some code running and it's been working fine BUT the site in question has started producing a duplicate when the value in an array is "morphsuite"
The code:
if(isset($sort2))
{
$sort2 = array_unique($sort2);
foreach($sort2 as $value)
{
$f_dress .= '<li><a href="../shop/shop.php?cat=2&sub='.$value.'">'.$value.'</a></li>';
}
}
else{
$f_dress = '';
}
All the other enteries pull from the DB are OK but getting a double when the value is "morphsuit"
Anyone know why?