From 058abc0336361ecd4edf30e35ae352401c554599 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 19 Oct 2022 08:05:31 -0400 Subject: [PATCH] Simplify boolean statements in Content\Conversation --- src/Content/Conversation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index c727ea2fab..13c41d59ce 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -436,7 +436,7 @@ class Conversation $this->page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput.css')); $this->page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput-typeahead.css')); - $ssl_state = (Session::getLocalUser() ? true : false); + $ssl_state = (bool)Session::getLocalUser(); $live_update_div = ''; @@ -526,7 +526,7 @@ class Conversation $live_update_div = '' . "\r\n"; } - $page_dropping = ((Session::getLocalUser() && Session::getLocalUser() == $uid) ? true : false); + $page_dropping = Session::getLocalUser() && Session::getLocalUser() == $uid; if (!$update) { $_SESSION['return_path'] = $this->args->getQueryString();