mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Code Inspection: Ternary expression can be replaced with condition (#728)
This commit is contained in:
parent
4e40a4bcd4
commit
de076c80ef
13 changed files with 29 additions and 29 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue