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

(-)a/C4/Search.pm (-1 / +1 lines)
Lines 1694-1700 sub searchResults { Link Here
1694
        $times = $offset + $results_per_page;
1694
        $times = $offset + $results_per_page;
1695
    }
1695
    }
1696
    else {
1696
    else {
1697
        $times = $hits; # If less hits than results_per_page+offset we go to the end
1697
        $times = $hits // 0; # If less hits than results_per_page+offset we go to the end
1698
    }
1698
    }
1699
1699
1700
    my $marcflavour = C4::Context->preference("marcflavour");
1700
    my $marcflavour = C4::Context->preference("marcflavour");
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 608-614 for my $plugin_variables ( @plugin_responses ) { Link Here
608
for (my $i=0;$i<@servers;$i++) {
608
for (my $i=0;$i<@servers;$i++) {
609
    my $server = $servers[$i];
609
    my $server = $servers[$i];
610
    if ($server && $server =~/biblioserver/) { # this is the local bibliographic server
610
    if ($server && $server =~/biblioserver/) { # this is the local bibliographic server
611
        $hits = $results_hashref->{$server}->{"hits"};
611
        $hits = $results_hashref->{$server}->{"hits"} // 0;
612
        if ( $hits == 0 && $basic_search ){
612
        if ( $hits == 0 && $basic_search ){
613
            $operands[0] = '"'.$operands[0].'"'; #quote it
613
            $operands[0] = '"'.$operands[0].'"'; #quote it
614
            ## I. BUILD THE QUERY
614
            ## I. BUILD THE QUERY
615
- 

Return to bug 35833