Lines 700-706
sub _validate_query {
Link Here
|
700 |
|
700 |
|
701 |
# Top-level OR combination or nested AND combination |
701 |
# Top-level OR combination or nested AND combination |
702 |
for my $element (@$query) { |
702 |
for my $element (@$query) { |
703 |
if ( ref $element eq 'ARRAY' && $element->[0] eq '-and' ) { |
703 |
if ( ref $element eq 'ARRAY' && scalar @{$element} && $element->[0] eq '-and' ) { |
704 |
_validate_query( $element->[1] ); |
704 |
_validate_query( $element->[1] ); |
705 |
} else { |
705 |
} else { |
706 |
_validate_query($element); |
706 |
_validate_query($element); |
707 |
- |
|
|