Merge remote branch 'kc/new/bug_3319' into kcmaster

Conflicts:
	members/members-home.pl
This commit is contained in:
Chris Cormack 2011-02-28 22:55:59 +13:00
commit f9f35b6984
1 changed files with 2 additions and 3 deletions

View File

@ -54,13 +54,12 @@ foreach (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname}
my @categories;
my $no_categories;
my $no_add = 0;
my $branchloop = (defined $branch?GetBranchesLoop($branch):GetBranchesLoop());
if(scalar(@$branchloop) < 1){
if(scalar(@branchloop) < 1){
$no_add = 1;
$template->param(no_branches => 1);
}
else {
$template->param(branchloop=>\@$branchloop);
$template->param(branchloop=>\@branchloop);
}
@categories=C4::Category->all;