View | Details | Raw Unified | Return to bug 37018
Collapse All | Expand All

(-)a/Koha/REST/Plugin/Query.pm (-2 / +1 lines)
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
- 

Return to bug 37018