Merge pull request #14191 from annando/Fix-block

Fix: $self is not an array
This commit is contained in:
Michael Vogel 2024-05-30 05:18:57 +02:00 committed by GitHub
commit e25c7d236c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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]);
}