mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-24 07:18:22 -04:00
Don't delete archived empty events.
This commit is contained in:
1 parent
0390d0e6f4
commit
0ec9a9f732
1 file changed
+4
@@ -692,6 +692,10 @@ if ( $level > 1 ) {
|
||||
if ( $res = $selectEmptyEventsSth->execute() ) {
|
||||
while( my $event = $selectEmptyEventsSth->fetchrow_hashref() ) {
|
||||
aud_print("Found empty event with no frame records '$event->{Id}' at $$event{StartDateTime}");
|
||||
if ($$event{Archived}) {
|
||||
aud_print("Not deleting because it is archived.");
|
||||
next;
|
||||
}
|
||||
if ( confirm() ) {
|
||||
if ( $res = $deleteEventSth->execute($event->{Id}) ) {
|
||||
$cleaned = 1;
|
||||
|
||||
Reference in new issue
Block a user