diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 92dadc4c..f7574c5b 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -342,7 +342,9 @@ function statusnet_settings(App $a, &$s) */ $connection = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret); $details = $connection->get('account/verify_credentials'); - $s .= '

' . L10n::t('Currently connected to: ') . '' . $details->screen_name . '
' . $details->description . '

'; + if (!empty($details)) { + $s .= '

' . L10n::t('Currently connected to: ') . '' . $details->screen_name . '
' . $details->description . '

'; + } $s .= '

' . L10n::t('If enabled all your public postings can be posted to the associated GNU Social 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 .= '

' . L10n::t('Note: Due your privacy settings (Hide your profile details from unknown viewers?) the link potentially included in public postings relayed to GNU Social will lead the visitor to a blank page informing the visitor that the access to your profile has been restricted.') . '

';