Merge pull request #1621 from connortechnology/fix_1620

ptzControl expects a monitor object instead of a dbrow array.
pull/1635/head
Isaac Connor 2016-09-15 10:18:26 -04:00 committed by GitHub
commit 5f46b8f942
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;