add test for when an event is deleted during audit
This commit is contained in:
parent
ae579c9649
commit
85202a0bfd
|
@ -351,6 +351,10 @@ MAIN: while( $loop ) {
|
|||
if ( ! defined( $fs_events->{$db_event} ) ) {
|
||||
Debug("Event $db_event is not in fs.");
|
||||
my $Event = new ZoneMinder::Event( $db_event );
|
||||
if ( ! $Event->Id() ) {
|
||||
Debug("Event $db_event is no longer in db. Filter probably deleted it while we were auditing.");
|
||||
next;
|
||||
}
|
||||
if ( ! $Event->StartTime() ) {
|
||||
Debug("Event $$Event{Id} has no start time. deleting it.");
|
||||
if ( confirm() ) {
|
||||
|
|
Loading…
Reference in New Issue