Fixed broken previous commit.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3322 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2011-04-19 09:53:33 +00:00
parent 40dfb5abde
commit e46acf74b0
1 changed files with 2 additions and 9 deletions

View File

@ -555,15 +555,8 @@ if ( !empty($action) )
foreach( $markEids as $markEid ) foreach( $markEids as $markEid )
deleteEvent( $markEid ); deleteEvent( $markEid );
if ( PHP_OS == "WINNT" )
{
system( "rmdir /s /q ".ZM_DIR_EVENTS."\\".$monitor['Id'] );
}
else
{
@unlink( ZM_DIR_EVENTS."/".$monitor['Name'] ); @unlink( ZM_DIR_EVENTS."/".$monitor['Name'] );
system( "rm -rf ".ZM_DIR_EVENTS."/".$monitor['Id'] ); system( "rm -rf ".ZM_DIR_EVENTS."/".$monitor['Id'] );
}
dbQuery( "delete from Zones where MonitorId = '".dbEscape($markMid)."'" ); dbQuery( "delete from Zones where MonitorId = '".dbEscape($markMid)."'" );
if ( ZM_OPT_X10 ) if ( ZM_OPT_X10 )