From abf75dc4cce365b6f0c9499773b9cb8a63d88b4e Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 2 Oct 2002 11:58:35 +0000 Subject: [PATCH] Added HUp signal on zone deletion. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@81 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/zm.php b/web/zm.php index f08732418..2a458659b 100644 --- a/web/zm.php +++ b/web/zm.php @@ -140,11 +140,18 @@ if ( $action ) } elseif ( $delete_zids ) { + $deleted_zid = 0; foreach( $delete_zids as $delete_zid ) { $result = mysql_query( "delete from Zones where Id = '$delete_zid'" ); if ( !$result ) die( mysql_error() ); + $deleted_zid = 1; + } + if ( $deleted_zid ) + { + startDaemon( "zma", $mid ); + $refresh_parent = true; } } elseif ( $delete_mids )