]> git.mxchange.org Git - friendica-addons.git/blobdiff - libertree/libertree.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / libertree / libertree.php
index 95def07a0b01dfd5dd0119bc74cf0e5f671f7ebf..f942bed3f4583f3277e67a2522c695278e65ad04 100644 (file)
@@ -166,7 +166,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::select('contact', array('id'), array('uid' => $b['uid'], 'self' => true), array('limit' => 1));
+       $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }