]> git.mxchange.org Git - friendica-addons.git/blobdiff - pumpio/pumpio.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / pumpio / pumpio.php
index f5bf6496a01321992741988dccb2da64fdf8ac7f..52a48ae2051d3a1afad70f057b4eda176a31ce1e 100644 (file)
@@ -418,7 +418,7 @@ function pumpio_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;
                }