]> git.mxchange.org Git - friendica-addons.git/blobdiff - wppost/wppost.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / wppost / wppost.php
index ea26ae45340a7070de9e0d4fdb0bf772fecd96fb..d6daa8c065a8318cf9279135be30930463427897 100644 (file)
@@ -202,7 +202,7 @@ function wppost_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;
        }