Simplify boolean statements in Content\Conversation

This commit is contained in:
Hypolite Petovan 2022-10-19 08:05:31 -04:00 committed by GitHub
parent ee1acba9eb
commit 058abc0336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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();