From 1c1630e5b46605e67213da97c8b2915314492c98 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 1 Feb 2022 17:23:16 -0500 Subject: [PATCH] add require Filter and fix missing $ --- scripts/zmpkg.pl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/zmpkg.pl.in b/scripts/zmpkg.pl.in index ffa7e3e50..077593e0c 100644 --- a/scripts/zmpkg.pl.in +++ b/scripts/zmpkg.pl.in @@ -34,6 +34,7 @@ use bytes; use ZoneMinder; use ZoneMinder::Monitor; use ZoneMinder::State; +use ZoneMinder::Filter; use DBI; use POSIX; use Time::HiRes qw/gettimeofday/; @@ -130,7 +131,7 @@ if ( $command eq 'state' ) { or ($monitor->{Recording} ne $definition->{Recording}) ) { - $monitor->save({ map { $_ => $definition{$_} } qw(Capturing Analysing Recording) }); + $monitor->save({ map { $_ => $$definition{$_} } qw(Capturing Analysing Recording) }); last; # definition } # end if } # end foreach definition