mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -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
|
@ -65,7 +65,7 @@ if (!empty($_POST['edit']) || !empty($_POST['new'])) {
|
|||
'S_GROUP_OPEN_CHECKED' => ($group_info['group_type'] == GROUP_OPEN) ? HTML_CHECKED : '',
|
||||
'S_GROUP_CLOSED_CHECKED' => ($group_info['group_type'] == GROUP_CLOSED) ? HTML_CHECKED : '',
|
||||
'S_GROUP_HIDDEN_CHECKED' => ($group_info['group_type'] == GROUP_HIDDEN) ? HTML_CHECKED : '',
|
||||
'RELEASE_GROUP' => $group_info['release_group'] ? true : false,
|
||||
'RELEASE_GROUP' => (bool)$group_info['release_group'],
|
||||
'S_GROUP_ACTION' => 'admin_groups.php',
|
||||
'S_HIDDEN_FIELDS' => $s_hidden_fields,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue