Use == false for better readability with file_is_for_platform() function

This commit is contained in:
Scott Ullrich 2009-08-31 17:36:49 -04:00
parent bce0292f2b
commit c817023d33

View File

@ -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 */