]> git.mxchange.org Git - friendica-addons.git/blobdiff - tumblr/tumblr.php
Replace dba::select(limit => 1) by dba::selectOne()
[friendica-addons.git] / tumblr / tumblr.php
index 77d98aca704493fa05dbf5ba28627f018a2c0866..674093edf7f02ca47e9596f010cf7a51dc09aba9 100644 (file)
@@ -327,7 +327,7 @@ function tumblr_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;
        }