X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-topissues.pl;h=dfdb6cd86cb18dc9509a5c9f3346a5aa79506dd3;hb=8648c21ddf975d9c8b589c8457e73e511077a05b;hp=6ecc6ad32cbd91351c600382a27db181d440890c;hpb=6f3123bbc65b1087e18bd8212d1ca01ed1087181;p=koha_fer diff --git a/opac/opac-topissues.pl b/opac/opac-topissues.pl index 6ecc6ad32c..dfdb6cd86c 100755 --- a/opac/opac-topissues.pl +++ b/opac/opac-topissues.pl @@ -122,14 +122,14 @@ if($timeLimit eq 999){ $timeLimitFinite = 0 }; $template->param(do_it => 1, limit => $limit, - branch => $branches->{$branch}->{branchname} || 'all locations', - itemtype => $itemtypes->{$itemtype}->{description} || 'item types', + branch => $branches->{$branch}->{branchname}, + itemtype => $itemtypes->{$itemtype}->{description}, timeLimit => $timeLimit, timeLimitFinite => $timeLimit, 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';