From 858ab62fc4f80ddc105fe9573017504edb1b7caf Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Tue, 8 Mar 2022 17:10:29 +0100 Subject: [PATCH] Fix when using a custom state --- scripts/zmpkg.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zmpkg.pl.in b/scripts/zmpkg.pl.in index 743be6680..b0d63a121 100644 --- a/scripts/zmpkg.pl.in +++ b/scripts/zmpkg.pl.in @@ -60,7 +60,7 @@ my $dbh = zmDbConnect(); Debug("Command: $command"); if ( $command and ( $command !~ /^(?:start|stop|restart|status|logrot|version)$/ ) ) { # Check to see if it's a valid run state - if ($state = ZoneMinder->find_one(Name=>$command)) { + if ($state = ZoneMinder::State->find_one(Name=>$command)) { $state->{Definitions} = []; foreach (split(',', $state->{Definition})) { my @state = split(':', $_);