mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix deviceUrl check (#12682)
This commit is contained in:
@@ -225,7 +225,7 @@ class Url
|
||||
*/
|
||||
public static function deviceUrl($device, $vars = [])
|
||||
{
|
||||
$routeParams = [is_int($device) ? $device : $device->device_id];
|
||||
$routeParams = [is_numeric($device) ? $device : $device->device_id];
|
||||
if (isset($vars['tab'])) {
|
||||
$routeParams[] = $vars['tab'];
|
||||
unset($vars['tab']);
|
||||
|
Reference in New Issue
Block a user