]> git.mxchange.org Git - friendica.git/commitdiff
Fix: $self is not an array
authorMichael <heluecht@pirati.ca>
Thu, 30 May 2024 03:17:34 +0000 (03:17 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 30 May 2024 03:17:34 +0000 (03:17 +0000)
src/Model/User.php

index 0701df4a26d13ef68ffd089b4144ec2da3c40527..551699ef6e565d0bc7eac31c07b9579444430475 100644 (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]);
        }