Merge remote-tracking branch 'kc/new/bug_5449' into kcmaster
[koha.git] / admin / branches.pl
index d8fa236..5c71b0c 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,