diff options
author | Scott Ullrich <sullrich@su.local> | 2009-08-31 17:37:29 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-08-31 17:37:29 -0400 |
commit | b34838d3bc088c39de0627ec4476b5e1f8bc90f6 (patch) | |
tree | 6090bfc3dc386999293d93fb244797dda2a221db /usr/local/www | |
parent | c817023d33cc8828a41e07e4e906d72dc063a8c8 (diff) | |
download | pfsense-b34838d3bc088c39de0627ec4476b5e1f8bc90f6.zip pfsense-b34838d3bc088c39de0627ec4476b5e1f8bc90f6.tar.gz |
Use == false for better readability with file_is_for_platform() function
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_firmware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index 7446e0f..b1a777d 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -108,7 +108,7 @@ if ($_POST && !file_exists($d_firmwarelock_path)) { } else if ($mode == "upgrade") { if (is_uploaded_file($_FILES['ulfile']['tmp_name'])) { /* verify firmware image(s) */ - if (file_is_for_platform($_FILES['ulfile']['tmp_name'] == false) && !$_POST['sig_override']) + if (file_is_for_platform($_FILES['ulfile']['tmp_name']) == false && !$_POST['sig_override']) $input_errors[] = "The uploaded image file is not for this platform ({$g['platform']})."; else if (!file_exists($_FILES['ulfile']['tmp_name'])) { /* probably out of memory for the MFS */ |