Merge pull request #3450 from gonzalezcalleja/fix_zmpkg

Fix when using a custom state with zmpkg.pl
This commit is contained in:
Isaac Connor 2022-03-08 11:21:00 -05:00 committed by GitHub
commit e943f0a411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(':', $_);