diff --git a/src/Model/User.php b/src/Model/User.php index 0701df4a26..551699ef6e 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -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]); }