From 3d6748eaf7e6a42e2e993a19bd8c8f37f7fc9967 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 15 Aug 2023 20:43:32 +0000 Subject: [PATCH] Simplified status display --- twitter/twitter.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 7b2e424c..c033fa93 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -117,12 +117,10 @@ function twitter_settings(array &$data) $access_secret = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'twitter', 'access_secret'); $last_status = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'twitter', 'last_status'); - if (empty($last_status)) { - $status = DI::l10n()->t('No status.'); - } elseif (!empty($last_status['code'])) { + if (!empty($last_status['code'])) { $status = print_r($last_status, true); } else { - $status = print_r($last_status, true); + $status = DI::l10n()->t('No status.'); } $t = Renderer::getMarkupTemplate('connector_settings.tpl', 'addon/twitter/'); -- 2.39.5