summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@su.local>2009-08-31 17:36:49 -0400
committerScott Ullrich <sullrich@su.local>2009-08-31 17:36:49 -0400
commitc817023d33cc8828a41e07e4e906d72dc063a8c8 (patch)
tree18f3e04c762b4bf63a4d1882849c99a258f0691a /usr/local/www
parentbce0292f2b66f418e4b68f27e3ebe2d51fa3472d (diff)
downloadpfsense-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-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 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 */
OpenPOWER on IntegriCloud