define monitor_options as an empty array instead of php implicitly dealing with it

This commit is contained in:
Isaac Connor 2019-11-01 13:42:01 -04:00
parent a20517a6db
commit 54c11bc0d1
1 changed files with 1 additions and 0 deletions

View File

@ -663,6 +663,7 @@ switch ( $tab ) {
<td>
<?php
$monitors = dbFetchAll('SELECT Id, Name FROM Monitors ORDER BY Sequence ASC');
$monitor_options = array();
foreach ( $monitors as $linked_monitor ) {
if ( (!$monitor->Id() || ($monitor->Id()!= $linked_monitor['Id'])) && visibleMonitor($linked_monitor['Id']) ) {
$monitor_options[$linked_monitor['Id']] = validHtmlStr($linked_monitor['Name']);