mirror of
https://github.com/friendica/friendica
synced 2024-11-18 01:03:40 +00:00
Merge pull request #14191 from annando/Fix-block
Fix: $self is not an array
This commit is contained in:
commit
e25c7d236c
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue