From 17a707bea7812d0149fa1f048493212245ac8b93 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Oct 2015 13:59:04 +0100 Subject: [PATCH] Bug 5144: Don't display the failed_holds param in the url if not needed Signed-off-by: Jonathan Druart --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 6e35c18..ef81b1d 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -297,7 +297,7 @@ if ( $query->param('place_reserve') ) { } } - print $query->redirect("/cgi-bin/koha/opac-user.pl?failed_holds=$failed_holds#opac-user-holds"); + print $query->redirect("/cgi-bin/koha/opac-user.pl?" . ( $failed_holds ? "failed_holds=$failed_holds" : q|| ) . "#opac-user-holds"); exit; } -- 2.1.0