From: Joshua Ferraro Date: Tue, 18 Dec 2007 22:50:39 +0000 (-0600) Subject: incorect syntax fix X-Git-Tag: v3.00.00-alpha~385 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=b0796518434b01f6aaefd193e0ca2eac5cb1b41c;p=koha_fer incorect syntax fix Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- diff --git a/C4/Search.pm b/C4/Search.pm index b55c71d758..31cd87d5e6 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -885,7 +885,7 @@ sub buildQuery { foreach my $this_limit (@limits) { if ( $this_limit =~ /available/ ) { # available is defined as (items.notloan is NULL) and (items.itemlost > 0 or NULL) (last clause handles NULL values for lost in zebra) - $availability_limit .="( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and ((lost,st-numeric gt 0) or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )"; + $availability_limit .="( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and ((lost,st-numeric ge 0) or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )"; $limit_cgi .= "&limit=available"; $limit_desc .=""; }