Fixed DB typos.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2237 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2007-11-11 15:59:59 +00:00
parent 3e65614d4d
commit 9670d8b5f6
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ if ( !canEdit( 'Monitors' ) )
$view = "error"; $view = "error";
return; return;
} }
$sql( "select Id,Name from MonitorPresets" ); $sql = "select Id,Name from MonitorPresets";
$presets = array(); $presets = array();
$presets[0] = $zmSlangChoosePreset; $presets[0] = $zmSlangChoosePreset;
foreach( dbFetchAll( $sql ) as $preset ) foreach( dbFetchAll( $sql ) as $preset )

View File

@ -45,7 +45,7 @@ elseif ( ZM_OPT_CONTROL )
} }
$sql = "select * from Monitors where Function != 'None' and Controllable = 1 $group_sql order by Sequence"; $sql = "select * from Monitors where Function != 'None' and Controllable = 1 $group_sql order by Sequence";
$control_mid = 0; $control_mid = 0;
foreach( dbFetchAl( $sql ) as $row ) foreach( dbFetchAll( $sql ) as $row )
{ {
if ( !visibleMonitor( $row['Id'] ) ) if ( !visibleMonitor( $row['Id'] ) )
{ {