From 69d393fc472aa027e205e7c29e71a7eaba564d32 Mon Sep 17 00:00:00 2001 From: Peter Vilhan Date: Tue, 6 Oct 2020 11:52:39 +0200 Subject: [PATCH] FIXED operand error for NOT IN SQL statement Switched operand from !~ to ~[] for NOT IN SQL statement. Web version was fine but zmfilter.pl suffered from this error. --- scripts/ZoneMinder/lib/ZoneMinder/Filter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm index 9903e38ec..a056d2495 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm @@ -322,7 +322,7 @@ sub Sql { $self->{Sql} .= ' IS NOT '.$value; } elsif ( $term->{op} eq '=[]' ) { $self->{Sql} .= ' IN ('.join(',', @value_list).')'; - } elsif ( $term->{op} eq '!~' ) { + } elsif ( $term->{op} eq '![]' ) { $self->{Sql} .= ' NOT IN ('.join(',', @value_list).')'; } elsif ( $term->{op} eq 'LIKE' ) { $self->{Sql} .= ' LIKE '.$value;