Bug 5917 : fixed branches.pl and made template::param handle empty array/hashes better
authorChristopher Hall <chris.hall@catalyst.net.nz>
Fri, 4 Feb 2011 02:10:16 +0000 (15:10 +1300)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 29 Mar 2011 19:55:57 +0000 (08:55 +1300)
admin/branches.pl

index f4bcf66..803d250 100755 (executable)
@@ -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,