From 8cfeb3a0b03fcb95def1d9bf2b3906c6d5f019f0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 3 Sep 2013 09:32:12 +0200 Subject: [PATCH] Bug 10807: FIX if zebra is down, total is undef The search_history.total column cannot be undef. This patch adds a default value for the total value. --- 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.10.4