]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Rename selectOne to selectFirst
[friendica-addons.git] / twitter / twitter.php
index 7c74713546bd60010dc2248b0af9dcf21b51ee8b..ccfdeb1fbf9cf04d458b167e9ae2e890c2f51a98 100644 (file)
@@ -335,7 +335,7 @@ function twitter_settings(App $a, &$s)
                                '$field' => array('twitter-enable', t('Allow posting to Twitter'), $enabled, t('If enabled all your <strong>public</strong> postings can be posted to the associated Twitter account. You can choose to do so by default (here) or for every posting separately in the posting options when writing the entry.'))
                        ));
                        if ($a->user['hidewall']) {
-                               $s .= '<p>' . t('<strong>Note</strong>: Due your privacy settings (<em>Hide your profile details from unknown viewers?</em>) the link potentially included in public postings relayed to Twitter will lead the visitor to a blank page informing the visitor that the access to your profile has been restricted.') . '</p>';
+                               $s .= '<p>' . t('<strong>Note</strong>: Due to your privacy settings (<em>Hide your profile details from unknown viewers?</em>) the link potentially included in public postings relayed to Twitter will lead the visitor to a blank page informing the visitor that the access to your profile has been restricted.') . '</p>';
                        }
                        $s .= replace_macros($field_checkbox, array(
                                '$field' => array('twitter-default', t('Send public postings to Twitter by default'), $defenabled, '')
@@ -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;
                }