]> git.mxchange.org Git - friendica-addons.git/blobdiff - wppost/wppost.php
Rename selectOne to selectFirst
[friendica-addons.git] / wppost / wppost.php
index 96e95979d34ebc7e7f14aab68e71f39d60742312..323fcef0caa805f8281cf5470904edfbcd231fca 100644 (file)
@@ -205,7 +205,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::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+       $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }