From cf45feea66aa202e24ed89127ebecc08d0e9cffb Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 14 Sep 2016 12:49:47 -0400 Subject: [PATCH] quiet the logs on initial view load --- web/skins/classic/views/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/control.php b/web/skins/classic/views/control.php index fe403abd1..4bf140efb 100644 --- a/web/skins/classic/views/control.php +++ b/web/skins/classic/views/control.php @@ -30,7 +30,7 @@ if ( !empty($_REQUEST['group']) ) { $groupSql = " and find_in_set( Id, '".$row['MonitorIds']."' )"; } -$mid = validInt($_REQUEST['mid']); +$mid = !empty($_REQUEST['mid']) ? validInt($_REQUEST['mid']) : 0; $sql = "SELECT * FROM Monitors WHERE Function != 'None' AND Controllable = 1$groupSql ORDER BY Sequence"; $mids = array();