mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Legacy vars Processing (#14967)
if a var was set to 0, it would be set to "yes" instead of 0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user