if(!isset($_GET['view']) || $_GET['view'] == 'login')
good catch garrett. The other thing to note with that chance zyreena is that in php there is no "or" you need to use the command "||"When you do something like if (condition 1 or condition 2 or condition 3...) the conditions are evaluated in order from left to right. So, if there's an error in condition 1, it will never reach condition 2 or 3. Since $_GET['view'] is not set, your condition 1 has an error - you are trying to operate on something that doesn't exist.
good catch garrett. The other thing to note with that chance zyreena is that in php there is no "or" you need to use the command "||"
$foo='a' or false ? 'b' : 'c' and 'd';
$bar='a' || false ? 'b' : 'c' && 'd';