mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Ternary operator could be simplified.
This commit is contained in:
parent
0a9e9e02eb
commit
75ad3506c2
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ if ($view === 'username') {
|
|||
}
|
||||
|
||||
// Pagination ?
|
||||
$do_pagination = ($view !== 'stats' && $view !== 'search') ? true : false;
|
||||
$do_pagination = ($view !== 'stats' && $view !== 'search');
|
||||
|
||||
// Set Order
|
||||
$order_by = '';
|
||||
|
@ -319,7 +319,7 @@ if ($view === 'username') {
|
|||
// Attachments
|
||||
if ($view === 'attachments') {
|
||||
$user_based = ($uid) ? true : false;
|
||||
$search_based = (isset($_POST['search']) && $_POST['search']) ? true : false;
|
||||
$search_based = (isset($_POST['search']) && $_POST['search']);
|
||||
|
||||
$hidden_fields = '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue