Bug 37018: Silence useless warning
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
c77c44be6d
commit
e77db213a5
1 changed files with 1 additions and 1 deletions
|
@ -700,7 +700,7 @@ sub _validate_query {
|
|||
|
||||
# Top-level OR combination or nested AND combination
|
||||
for my $element (@$query) {
|
||||
if ( ref $element eq 'ARRAY' && $element->[0] eq '-and' ) {
|
||||
if ( ref $element eq 'ARRAY' && scalar @{$element} && $element->[0] eq '-and' ) {
|
||||
_validate_query( $element->[1] );
|
||||
} else {
|
||||
_validate_query($element);
|
||||
|
|
Loading…
Reference in a new issue