From 0eb6be9d05cb6737f33943e9e6f7d44ccbaf2c56 Mon Sep 17 00:00:00 2001 From: Christopher Hall Date: Fri, 4 Feb 2011 15:10:16 +1300 Subject: [PATCH] Bug 5917 : fixed branches.pl and made template::param handle empty array/hashes better --- admin/branches.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/branches.pl b/admin/branches.pl index f4bcf661ad..803d250cf5 100755 --- a/admin/branches.pl +++ b/admin/branches.pl @@ -383,7 +383,7 @@ sub branchinfotable { categorytype => $cat->{'categorytype'}, }; } - push @branchcategories, { categorytype => $ctype , $ctype => 1 , catloop => \@categories}; + push @branchcategories, { categorytype => $ctype , $ctype => 1 , catloop => ( @categories ? \@categories : undef) }; } $innertemplate->param( branches => \@loop_data, -- 2.39.5