From 54b62fab1de64bfb05440456945fd175d936e333 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 9 Aug 2018 04:16:56 +0000 Subject: [PATCH] And again removed notices --- statusnet/statusnet.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 92dadc4c5..f7574c5b8 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.') . '

';