Possibly a strange one that I hope can be done in one line.
I have to have an IF statement that will checks two things.
- The first checks if the variable $loggedInfo['status'] is set and is equal to "client".
- The second checks that the variable $loggedInfo['address1'] is set and is blank.
The reason being that when the first variable equals staff then the 'address1' variable doesn't exist.
I did have the following but when I log in as staff it still checks for the address1
if((isset($loggedInfo['status'])=="client")&&(!$loggedInfo['address1'])){
//Do something
}
address1?