ptzControl expects a monitor object instead of a dbrow array.
This commit is contained in:
parent
3dc2170a69
commit
54db9f2e3a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue