From 3181c9dc7281c01b338ce168bda13cc3f14ba365 Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Wed, 18 Nov 2020 21:57:58 +0100 Subject: [PATCH] Sort by Firmware Fix --- app/views/Device.php | 4 ++++ app/views/templates/device.phtml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/Device.php b/app/views/Device.php index 4d0bba8..bd48bcf 100644 --- a/app/views/Device.php +++ b/app/views/Device.php @@ -62,6 +62,10 @@ class Device extends Template } //Firmware Status + if (empty($devices[$key]['mac'])) { + $devices[$key]['firmware_hash'] = ""; + continue; + } $localBinary = "../updater/" . str_replace(':', '', $device['mac']) . ".bin"; $devices[$key]['firmware_hash'] = ""; if (file_exists($localBinary)) { diff --git a/app/views/templates/device.phtml b/app/views/templates/device.phtml index 5499fe5..6b4832c 100644 --- a/app/views/templates/device.phtml +++ b/app/views/templates/device.phtml @@ -32,9 +32,9 @@ Signal Firmware - IP Address
- (Mac)
- Token + IP Address
+ (Mac)
+ Token Action