]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
Rename selectOne to selectFirst
[friendica-addons.git] / statusnet / statusnet.php
index 084b233d1de679e85d0a705b156aa11d15e3b763..34bbf20cc6d08a3eb8703f1439fd170b1ce84388 100644 (file)
@@ -582,7 +582,7 @@ function statusnet_post_hook(App $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;
                }