Fixed 500 when editing an Angeltype while session expires
This commit is contained in:
parent
3129d53a64
commit
6738fbeec3
|
@ -74,6 +74,10 @@ function User_unconfirmed_AngelTypes($userId)
|
||||||
*/
|
*/
|
||||||
function User_is_AngelType_supporter($user, $angeltype)
|
function User_is_AngelType_supporter($user, $angeltype)
|
||||||
{
|
{
|
||||||
|
if (!$user) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$privileges = privileges_for_user($user->id);
|
$privileges = privileges_for_user($user->id);
|
||||||
|
|
||||||
return (count(DB::select('
|
return (count(DB::select('
|
||||||
|
|
Loading…
Reference in New Issue