]> git.mxchange.org Git - friendica-addons.git/blobdiff - libertree/libertree.php
Merge pull request #486 from MrPetovan/task/fix-scrutinizer-issues
[friendica-addons.git] / libertree / libertree.php
index c421d07666290fbf77b5628a8e8904656ce103f4..f5a157ec84b32f350f55b1451b57b8020b474c42 100644 (file)
@@ -169,7 +169,7 @@ function libertree_send(&$a,&$b) {
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
-       $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+       $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }