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:
stan 2007-11-23 13:02:52 +00:00
parent d51427e567
commit 877605fe12
1 changed files with 3 additions and 0 deletions

View File

@ -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'"; $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 ); $monitor = dbFetchOne( $sql );
if ( !isset($control) )
$control = (canView( 'Control' ) && ($monitor['DefaultView'] == 'Control'));
$showControls = ( ZM_OPT_CONTROL && $monitor['Controllable'] && canView( 'Control' ) ); $showControls = ( ZM_OPT_CONTROL && $monitor['Controllable'] && canView( 'Control' ) );
if ( !isset( $scale ) ) if ( !isset( $scale ) )