From 011f439740a51079718c64be7648fbaac3c79a82 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 Signed-off-by: Tomas Cohen Arazi --- 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 6e35c182a1..ef81b1d1bf 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.39.5