diff --git a/web/skins/classic/views/control.php b/web/skins/classic/views/control.php index 4b979543c..fe403abd1 100644 --- a/web/skins/classic/views/control.php +++ b/web/skins/classic/views/control.php @@ -48,8 +48,7 @@ foreach( dbFetchAll( $sql ) as $row ) foreach ( getSkinIncludes( 'includes/control_functions.php' ) as $includeFile ) require_once $includeFile; -$sql = 'SELECT C.*,M.* FROM Monitors AS M INNER JOIN Controls AS C ON (M.ControlId = C.Id ) WHERE M.Id = ?'; -$monitor = dbFetchOne( $sql, NULL, array( $mid ) ); +$monitor = new Monitor( $mid ); $focusWindow = true;