]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Merge pull request #486 from MrPetovan/task/fix-scrutinizer-issues
[friendica-addons.git] / twitter / twitter.php
index 43aee0fef502193b2734e97bda444966a714dba1..ccfdeb1fbf9cf04d458b167e9ae2e890c2f51a98 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::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
                if ($b['contact-id'] != $self['id']) {
                        return;
                }