From 27cb6208fd2fc2da6ed2af186149e674f1282d6e Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 23 Sep 2002 21:00:12 +0000 Subject: [PATCH] Corrected device references in controlDaemons. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@48 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 )