From e5d397f82792d1e0cdaf1617f09bf6576d777561 Mon Sep 17 00:00:00 2001 From: christophe croullebois Date: Wed, 6 Jun 2012 15:14:15 +0200 Subject: [PATCH] Bug 8197 : Software error when you have cleaned cookies and try to past the url to opac-topissues.pl Try to delete cookies and paste the url to opac-topissues.pl. Without the patch we have a Software error. Signed-off-by: Martin Renvoize Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack (cherry picked from commit fa00315b2b61c3c1824b7af185317c1b3503c66f) Signed-off-by: Jared Camins-Esakov --- opac/opac-topissues.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-topissues.pl b/opac/opac-topissues.pl index 6ecc6ad32c..7fb902e350 100755 --- a/opac/opac-topissues.pl +++ b/opac/opac-topissues.pl @@ -129,7 +129,7 @@ $template->param(do_it => 1, results_loop => \@results, ); -$template->param( branchloop => GetBranchesLoop(C4::Context->userenv->{'branch'})); +$template->param( branchloop => GetBranchesLoop(C4::Context->userenv?C4::Context->userenv->{'branch'}:'')); # the index parameter is different for item-level itemtypes my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype'; -- 2.39.5