From 6e207fdee70fd9dd7db068851656ee5c3a461352 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 3 Sep 2013 09:32:12 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 10807: FIX if zebra is down, total is undef Content-Type: text/plain; charset="utf-8" The search_history.total column cannot be undef. This patch adds a default value for the total value. Signed-off-by: Owen Leonard This change doesn't negatively affect search history as far as I can tell but I also can't reproduce the bug it is meant to fix, so take this signoff with a grain of salt. --- C4/Search/History.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search/History.pm b/C4/Search/History.pm index 4a5d78b..7afdd1e 100644 --- a/C4/Search/History.pm +++ b/C4/Search/History.pm @@ -15,7 +15,7 @@ sub add { my $sessionid = $params->{sessionid}; my $query_desc = $params->{query_desc}; my $query_cgi = $params->{query_cgi}; - my $total = $params->{total}; + my $total = $params->{total} // 0; my $type = $params->{type} || 'biblio'; my $dbh = C4::Context->dbh; -- 1.7.9.5