The following code is not behaving as should (I think)
[php]
$l = 1;
if(!isset($_GET))
{
foreach($menu[‘login’] as $line => $menu)
{
$l++; if ($l > 2) $l = 1;
echo ‘
}
}
elseif(isset($_GET))
{
foreach($menu[key($_GET)] as $line => $menu)
{
$l++; if ($l > 2) $l = 1;
echo ‘
}
}
[/php]
When the app is executed, its erroring out on the “else” section, when there is NO get set, or request, or post(I tried all 3). The else should not trigger. Can someone tell me why it might be ?