From: Hypolite Petovan Date: Wed, 19 Oct 2022 12:05:31 +0000 (-0400) Subject: Simplify boolean statements in Content\Conversation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=058abc0336361ecd4edf30e35ae352401c554599;p=friendica.git Simplify boolean statements in Content\Conversation --- 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();