Project

General

Profile

« Previous | Next » 

Revision b34838d3

Added by Scott Ullrich almost 16 years ago

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

View differences:

usr/local/www/system_firmware.php
108 108
		} else if ($mode == "upgrade") {
109 109
			if (is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
110 110
				/* verify firmware image(s) */
111
				if (file_is_for_platform($_FILES['ulfile']['tmp_name'] == false) && !$_POST['sig_override'])
111
				if (file_is_for_platform($_FILES['ulfile']['tmp_name']) == false && !$_POST['sig_override'])
112 112
					$input_errors[] = "The uploaded image file is not for this platform ({$g['platform']}).";
113 113
				else if (!file_exists($_FILES['ulfile']['tmp_name'])) {
114 114
					/* probably out of memory for the MFS */

Also available in: Unified diff