Added HUp signal on zone deletion.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@81 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
00db60fe84
commit
abf75dc4cc
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue