]> git.mxchange.org Git - friendica-addons.git/blobdiff - diaspora/diaspora.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / diaspora / diaspora.php
index 04ed24ca84b42d12d5f3dfed190a3e3fecaacdf3..d2e2961dc2c7a428eed7f12c165e9640a5df2d61 100644 (file)
@@ -286,7 +286,7 @@ function diaspora_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;
        }