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

(-)a/C4/Search.pm (-3 / +2 lines)
Lines 1532-1538 sub buildQuery { Link Here
1532
        for ( my $i = 0 ; $i <= @operands ; $i++ ) {
1532
        for ( my $i = 0 ; $i <= @operands ; $i++ ) {
1533
1533
1534
            # COMBINE OPERANDS, INDEXES AND OPERATORS
1534
            # COMBINE OPERANDS, INDEXES AND OPERATORS
1535
            if ( $operands[$i] ) {
1535
            if ( $operands[$i] ne '' ) {
1536
		$operands[$i]=~s/^\s+//;
1536
		$operands[$i]=~s/^\s+//;
1537
1537
1538
              # A flag to determine whether or not to add the index to the query
1538
              # A flag to determine whether or not to add the index to the query
Lines 1677-1683 sub buildQuery { Link Here
1677
                    query_desc => $query_desc,
1677
                    query_desc => $query_desc,
1678
                    operator => ($operators[ $i - 1 ]) ? $operators[ $i - 1 ] : '',
1678
                    operator => ($operators[ $i - 1 ]) ? $operators[ $i - 1 ] : '',
1679
                    parsed_operand => $operand,
1679
                    parsed_operand => $operand,
1680
                    original_operand => ($operands[$i]) ? $operands[$i] : '',
1680
                    original_operand => ($operands[$i] ne '') ? $operands[$i] : '',
1681
                    index => $index,
1681
                    index => $index,
1682
                    index_plus => $index_plus,
1682
                    index_plus => $index_plus,
1683
                    indexes_set => $indexes_set,
1683
                    indexes_set => $indexes_set,
1684
- 

Return to bug 19873