summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@su.local>2009-08-31 17:37:29 -0400
committerScott Ullrich <sullrich@su.local>2009-08-31 17:37:29 -0400
commitb34838d3bc088c39de0627ec4476b5e1f8bc90f6 (patch)
tree6090bfc3dc386999293d93fb244797dda2a221db /usr/local/www
parentc817023d33cc8828a41e07e4e906d72dc063a8c8 (diff)
downloadpfsense-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-xusr/local/www/system_firmware.php2
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 */
OpenPOWER on IntegriCloud