From 9670d8b5f6a870023b621a99753930ce4d7eaad6 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 11 Nov 2007 15:59:59 +0000 Subject: [PATCH] Fixed DB typos. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2237 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_html_view_monitorpreset.php | 2 +- web/zm_html_view_montagemenu.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/zm_html_view_monitorpreset.php b/web/zm_html_view_monitorpreset.php index ef7eef80a..7145690c6 100644 --- a/web/zm_html_view_monitorpreset.php +++ b/web/zm_html_view_monitorpreset.php @@ -23,7 +23,7 @@ if ( !canEdit( 'Monitors' ) ) $view = "error"; return; } -$sql( "select Id,Name from MonitorPresets" ); +$sql = "select Id,Name from MonitorPresets"; $presets = array(); $presets[0] = $zmSlangChoosePreset; foreach( dbFetchAll( $sql ) as $preset ) diff --git a/web/zm_html_view_montagemenu.php b/web/zm_html_view_montagemenu.php index 659d87b80..27f5061bf 100644 --- a/web/zm_html_view_montagemenu.php +++ b/web/zm_html_view_montagemenu.php @@ -45,7 +45,7 @@ elseif ( ZM_OPT_CONTROL ) } $sql = "select * from Monitors where Function != 'None' and Controllable = 1 $group_sql order by Sequence"; $control_mid = 0; - foreach( dbFetchAl( $sql ) as $row ) + foreach( dbFetchAll( $sql ) as $row ) { if ( !visibleMonitor( $row['Id'] ) ) {