diff --git a/web/zm.php b/web/zm.php index 150df428e..8b366ba37 100644 --- a/web/zm.php +++ b/web/zm.php @@ -1668,19 +1668,19 @@ function controlDaemons( $device ) if ( !$passive_count && !$active_count ) { - stopDaemon( "zmc", $monitor[Device] ); + stopDaemon( "zmc", $device ); } else { - startDaemon( "zmc", $monitor[Device] ); + startDaemon( "zmc", $device ); } if ( !$active_count ) { - stopDaemon( "zma", $monitor[Device] ); + stopDaemon( "zma", $device ); } else { - startDaemon( "zma", $monitor[Device] ); + startDaemon( "zma", $device ); } } function getEnumValues( $table, $column )