diff --git a/includes/model/UserAngelTypes_model.php b/includes/model/UserAngelTypes_model.php index 0dcc7fb3..7cb99dea 100644 --- a/includes/model/UserAngelTypes_model.php +++ b/includes/model/UserAngelTypes_model.php @@ -74,6 +74,10 @@ function User_unconfirmed_AngelTypes($userId) */ function User_is_AngelType_supporter($user, $angeltype) { + if (!$user) { + return false; + } + $privileges = privileges_for_user($user->id); return (count(DB::select('