mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Fix: $self is not an array
This commit is contained in:
parent
83b286fafb
commit
e14a63d848
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