From: christophe croullebois <christophe.croulleb...@biblibre.com>

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 <martin.renvo...@ptfs-europe.com>
---
 opac/opac-topissues.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opac/opac-topissues.pl b/opac/opac-topissues.pl
index 6ecc6ad..7fb902e 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';
-- 
1.7.2.5

_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to