From b3a718f802e52bf09bd59dbc376b3c50c703b324 Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Fri, 15 Nov 2024 12:30:07 +1000 Subject: [PATCH] On queriesExecute, ignore case when checking for ip_padded. --- app/Views/queriesExecute.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Views/queriesExecute.php b/app/Views/queriesExecute.php index 03835a7c6..5c9e30e5c 100644 --- a/app/Views/queriesExecute.php +++ b/app/Views/queriesExecute.php @@ -15,7 +15,7 @@ attributes as $key => $value) { - if (strrpos($key, 'ip_padded') === strlen($key) - 9) { + if (strripos($key, 'ip_padded') === strlen($key) - 9) { continue; } if ($key === 'devices.icon') { @@ -35,7 +35,7 @@ foreach ($data as $item) { echo "\n"; foreach ($data[0]->attributes as $key => $value) { - if (strrpos($key, 'ip_padded') === strlen($key) - 9) { + if (strripos($key, 'ip_padded') === strlen($key) - 9) { continue; } if ($key === 'devices.id') { @@ -45,7 +45,7 @@ echo collection_button_read($temp[0], $item->attributes->{$key}); } elseif ($key === 'link') { echo "attributes->{$key} . "\" role=\"button\" class=\"btn btn-sm btn-primary\">"; - } elseif ((strrpos($key, 'ip') === strlen($key) - 2)) { + } elseif ((strripos($key, 'ip') === strlen($key) - 2)) { $padded_key = substr($key, 0, strpos($key, 'ip')) . 'ip_padded'; if (!empty($item->attributes->{$padded_key})) { echo ' ' . $item->attributes->{$padded_key} . '' . $item->attributes->{$key} . "\n";