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'] ) ) {