From 54db9f2e3ac4c7faf488d2a77960b6360fb2d256 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 12 Sep 2016 21:36:03 -0400 Subject: [PATCH] ptzControl expects a monitor object instead of a dbrow array. --- web/skins/classic/views/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;