summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-02 06:52:11 +0000
committerColin Smith <colin@pfsense.org>2005-04-02 06:52:11 +0000
commit719dd5fe9a33a06b3786897a24b8327532246706 (patch)
tree62012f3703a962c63dbd76afff077da16aca79c4 /usr/local/www/system_firmware.php
parent16d70dea52472b0d4f9177190f451a95d011805e (diff)
downloadpfsense-719dd5fe9a33a06b3786897a24b8327532246706.zip
pfsense-719dd5fe9a33a06b3786897a24b8327532246706.tar.gz
Remove "cannot determine firmware version" line when alternative URLs are being used unless the version check actually fails.
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 2741a92..6b4dd9c 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -109,11 +109,12 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
}
} else {
/* Only check firmware version if we're setup to go against pfsense.org and user wants us to */
- if (!isset($config['system']['disablefirmwarecheck']))
- if(!isset($config['system']['alt_firmware_url']['enabled']))
- $fwinfo = check_firmware_version();
- else
+ if (!isset($config['system']['disablefirmwarecheck'])) {
+ $fwinfo = check_firmware_version();
+ if(is_null($fwinfo)) {
$fwinfo = "Using alternate firmware URL, cannot determine if {$config['system']['alt_firmware_url']['firmware_base_url']}{$config['system']['alt_firmware_url']['firmware_filename']} is newer than current.";
+ }
+ }
}
/* upload progress bar id */
OpenPOWER on IntegriCloud