I have this loop i am trying to get to work, i edited the 2 if statements under the beginning of the code "foreach" but all i get is a white page now and i cant manage to get this to work, anyone that can see the problem ?
foreach ($shortUrlDomains AS $k => $shortUrlDomain)
{
if (($shortUrlDomain['premium_only'] == 1) && ($Auth->subdomain == 1))
{
if(($shortUrlDomain['premium_only'] !== '1') && ($shortUrlDomain['premium_only'] !== $Auth->id))
{
continue;
}
else(($shortUrlDomain['premium_only'] ==! 1))
{
continue;
}
}
echo '<option value="' . (int) $k . '"';
if(isset($_REQUEST['shortUrlDomain']))
{
if ($k == (int) $_REQUEST['shortUrlDomain'])
{
echo 'SELECTED';
}
}
echo '>';
echo $shortUrlDomain['domain'];
if($disabled == true)
{
echo ' ('.safeOutputToScreen(t('unavailable', 'unavailable')).')';
}
'</option>';
}
echo '</optgroup>';
?>