Merge remote branch 'kc/new/bug_3319' into kcmaster
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 28 Feb 2011 09:55:59 +0000 (22:55 +1300)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 28 Feb 2011 09:55:59 +0000 (22:55 +1300)
Conflicts:
members/members-home.pl

members/members-home.pl

index 6cb60fa..00c6034 100755 (executable)
@@ -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;