From d83ba61408770bb72ab9868131afa2f418387dfe Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Fri, 14 Apr 2023 16:46:56 -0500 Subject: [PATCH] Fix Legacy vars Processing (#14967) if a var was set to 0, it would be set to "yes" instead of 0 --- LibreNMS/Util/Url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Util/Url.php b/LibreNMS/Util/Url.php index 70c45c3b18..49a498f186 100644 --- a/LibreNMS/Util/Url.php +++ b/LibreNMS/Util/Url.php @@ -630,7 +630,7 @@ class Url $vars['page'] = $segment; } else { [$name, $value] = array_pad(explode('=', $segment), 2, null); - if (! $value) { + if ($value === null) { if ($vars['page'] == 'device' && $pos < 3) { // translate laravel device routes properly $vars[$pos === 1 ? 'device' : 'tab'] = $name;