define monitor_options as an empty array instead of php implicitly dealing with it
This commit is contained in:
parent
a20517a6db
commit
54c11bc0d1
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue