add global

pull/3038/head
Isaac Connor 2020-09-07 13:29:21 -04:00
parent fc06b440ad
commit 74dc8af76f
1 changed files with 1 additions and 3 deletions

View File

@ -7,9 +7,7 @@ if ( ZM_OPT_CONTROL ) {
?>
var controlOptions = new Object();
<?php
# Temporary workaround to show all ptz control types regardless of monitor source type
# $sql = "select * from Controls where Type = '".$newMonitor['Type']."'";
$sql = 'SELECT `Id`,`Name`,`HasHomePreset`,`NumPresets` FROM `Controls` ORDER BY lower(`Name`)';
global $controls;
foreach ( $controls as $control ) {
echo '
controlOptions['.$control->Id().'] = new Array();