Code Inspection: Ternary expression can be replaced with condition (#728)

This commit is contained in:
Roman Kelesidis 2023-05-29 00:32:36 +07:00 committed by GitHub
commit de076c80ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 29 additions and 29 deletions

View file

@ -302,7 +302,7 @@ if ($view === 'username') {
// Attachments
if ($view === 'attachments') {
$user_based = $uid ? true : false;
$user_based = (bool)$uid;
$search_based = (isset($_POST['search']) && $_POST['search']);
$hidden_fields = '';