]> git.mxchange.org Git - friendica-addons.git/blobdiff - buffer/buffer.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / buffer / buffer.php
index 97373f301488487ad4a5f753d1bb5ef18eb31a83..6ecfb1894a4241b204d157e54d97cca1a271b60f 100644 (file)
@@ -250,7 +250,7 @@ function buffer_send(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;
        }