mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +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);
|
$self = Contact::getPublicIdByUserId($uid);
|
||||||
if ($block) {
|
if ($block) {
|
||||||
Contact::block($self['id']);
|
Contact::block($self);
|
||||||
} else {
|
} else {
|
||||||
Contact::unblock($self['id']);
|
Contact::unblock($self);
|
||||||
}
|
}
|
||||||
return DBA::update('user', ['blocked' => $block], ['uid' => $uid]);
|
return DBA::update('user', ['blocked' => $block], ['uid' => $uid]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue