summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/system_firmware_check.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php
index fd4378f..4922b07 100755
--- a/usr/local/www/system_firmware_check.php
+++ b/usr/local/www/system_firmware_check.php
@@ -68,11 +68,7 @@ $versions = check_firmware_version();
$currentvers = $versions['current'];
foreach($versions as $key => $version) {
if($key == "current") continue;
- if($key == "firmware") {
- $currentver = array_shift(explode('-', $currentvers['firmware']['version']));
- } else {
- $currentver = $currentvers[$key]['version'];
- }
+ $currentver = array_shift(explode('-', $currentvers[$key]['version']));
if($version == 1) {
$img = "pass.gif";
} elseif($currentver > $version[count($version) - 1]['version']) {
OpenPOWER on IntegriCloud