]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / twitter / twitter.php
index 43aee0fef502193b2734e97bda444966a714dba1..e501a3442882085c3b6c15b052474874266bbc74 100644 (file)
@@ -468,7 +468,7 @@ function twitter_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::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;
                }