]> git.mxchange.org Git - friendica.git/commitdiff
Simplify boolean statements in Content\Conversation
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 19 Oct 2022 12:05:31 +0000 (08:05 -0400)
committerGitHub <noreply@github.com>
Wed, 19 Oct 2022 12:05:31 +0000 (08:05 -0400)
src/Content/Conversation.php

index c727ea2fab7005f0d1495c132773bee57889eac6..13c41d59ce702a0bbd698e836ef6fd97b6d3d72b 100644 (file)
@@ -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 = '<div id="live-search"></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();