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:
parent
40dfb5abde
commit
e46acf74b0
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue