Im using the uflex class to handle users on an intranet im making. I want to handle users that are not logged in, which means:
$user->data['group_id'] is not set
is it appropriate to use the following code or is there a better way?
$user->data['group_id'] is not set
is it appropriate to use the following code or is there a better way?
Code:
if (isset($user->data['group_id']) && $user->data['group_id'] == 0) {
{