ptzControl expects a monitor object instead of a dbrow array.

This commit is contained in:
Isaac Connor 2016-09-12 21:36:03 -04:00
parent 3dc2170a69
commit 54db9f2e3a
1 changed files with 1 additions and 2 deletions

View File

@ -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;