gitweb: Fix thinko in git_tags and git_heads
[gitweb.git] / gitweb / gitweb.perl
index 0d13b3388fbce1dff3891af8d69e396ac0679471..baadbe751275ccd0205af089d9ab4b245fa6a62c 100755 (executable)
@@ -2576,7 +2576,7 @@ sub git_tags {
        git_print_header_div('summary', $project);
 
        my ($taglist) = git_get_refs_list("tags");
-       if (defined @$taglist) {
+       if (@$taglist) {
                git_tags_body($taglist);
        }
        git_footer_html();
@@ -2589,7 +2589,7 @@ sub git_heads {
        git_print_header_div('summary', $project);
 
        my ($headlist) = git_get_refs_list("heads");
-       if (defined @$headlist) {
+       if (@$headlist) {
                git_heads_body($headlist, $head);
        }
        git_footer_html();