Fixed default view being ignored issue.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2247 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
d51427e567
commit
877605fe12
|
@ -27,6 +27,9 @@ if ( !canView( 'Stream' ) )
|
|||
$sql = "select C.*, M.* from Monitors as M left join Controls as C on (M.ControlId = C.Id ) where M.Id = '$mid'";
|
||||
$monitor = dbFetchOne( $sql );
|
||||
|
||||
if ( !isset($control) )
|
||||
$control = (canView( 'Control' ) && ($monitor['DefaultView'] == 'Control'));
|
||||
|
||||
$showControls = ( ZM_OPT_CONTROL && $monitor['Controllable'] && canView( 'Control' ) );
|
||||
|
||||
if ( !isset( $scale ) )
|
||||
|
|
Loading…
Reference in New Issue