]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / statusnet / statusnet.php
index 659ddaef2a59a13840a6022bd9dcaac0cdb3fadb..814722f45e4257300974a208a297fde1e9812139 100644 (file)
@@ -580,7 +580,7 @@ function statusnet_post_hook(App $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;
                }