diff options
author | Scott Ullrich <sullrich@su.local> | 2009-08-31 17:36:49 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-08-31 17:36:49 -0400 |
commit | c817023d33cc8828a41e07e4e906d72dc063a8c8 (patch) | |
tree | 18f3e04c762b4bf63a4d1882849c99a258f0691a /usr/local/www | |
parent | bce0292f2b66f418e4b68f27e3ebe2d51fa3472d (diff) | |
download | pfsense-c817023d33cc8828a41e07e4e906d72dc063a8c8.zip pfsense-c817023d33cc8828a41e07e4e906d72dc063a8c8.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 f340b8f..7446e0f 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']) && !$_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 */ |