Simplify boolean statements in Content\Conversation
This commit is contained in:
parent
ee1acba9eb
commit
058abc0336
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user