diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 928bffc13..76614decb 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -724,22 +724,19 @@ switch ( $tab ) { $breakCount = (int)(ceil(count($optTriggers))); $breakCount = min(3, $breakCount); $optCount = 0; - foreach( $optTriggers as $optTrigger ) { - if ( !ZM_OPT_X10 && $optTrigger == 'X10' ) + foreach ( $optTriggers as $optTrigger ) { + if ( $optTrigger == 'X10' and !ZM_OPT_X10 ) continue; if ( $optCount && ($optCount%$breakCount == 0) ) echo '
'; -?> - Triggers() ) && in_array( $optTrigger, $monitor->Triggers() ) ) { ?> checked="checked"/>  -Triggers()) && in_array($optTrigger, $monitor->Triggers()) ) ? ' checked="checked"':''). '/> '. $optTrigger; $optCount ++; - } - if ( !$optCount ) { - ?> - - + } # end foreach trigger option + if ( !$optCount ) { + echo ''. translate('NoneAvailable') .''; + } +?>