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
|
@ -46,7 +46,7 @@ function attachment_quota_settings($admin_mode, $mode, $submit = false)
|
|||
|
||||
if ($admin_mode == 'user') {
|
||||
// We overwrite submit here... to be sure
|
||||
$submit = (isset($_POST['submit'])) ? true : false;
|
||||
$submit = isset($_POST['submit']);
|
||||
|
||||
if (!$submit && $mode != 'save') {
|
||||
$user_id = get_var(POST_USERS_URL, 0);
|
||||
|
|
|
@ -79,7 +79,7 @@ function get_supported_image_types($type)
|
|||
}
|
||||
|
||||
return array(
|
||||
'gd' => ($new_type) ? true : false,
|
||||
'gd' => (bool)$new_type,
|
||||
'format' => $new_type,
|
||||
'version' => (function_exists('imagecreatetruecolor')) ? 2 : 1
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue