Fix: $self is not an array

This commit is contained in:
Michael 2024-05-30 03:17:34 +00:00
parent 83b286fafb
commit e14a63d848

View file

@ -1494,9 +1494,9 @@ class User
{
$self = Contact::getPublicIdByUserId($uid);
if ($block) {
Contact::block($self['id']);
Contact::block($self);
} else {
Contact::unblock($self['id']);
Contact::unblock($self);
}
return DBA::update('user', ['blocked' => $block], ['uid' => $uid]);
}