Code:
if ($user_id == NULL || $user_name == NULL || $user_logged == NULL) {
$user_id = '-1';
$user_name = NULL;
$user_logged = NULL;
}
if ($user_admin == NULL) {
$user_admin = NULL;
}
- Is there any shortest way to do it?
- And if I am right, it should be tested with is_null?
- Is It possible $user_id, $user_name and $user_logged to write in one line (maybe array?) without repeating NULL?