X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fshow-tournament.pl;h=3d0db3c945f38c8bb363b93362b30d20637e329e;hp=61c3badf7226c2d285226a0da8be07e54dc2e853;hb=db78ca4c7bad712e4d49337858e1970547b1d20a;hpb=8eb86b82b83b305a736f462ea80789db386c0459 diff --git a/html/show-tournament.pl b/html/show-tournament.pl index 61c3bad..3d0db3c 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -51,9 +51,9 @@ for my $score (@$scores) { } if ($score->{'position'} == 1) { if ($score->{'chosen'}) { - push @{$p->[$#$p]->{'songs'}}, ''; + push @{$p->[$#$p]->{'songs'}}, { song => -1, title => '' }; } else { - push @{$p->[$#$p]->{'songs'}}, $score->{'title'}; + push @{$p->[$#$p]->{'songs'}}, $score; } $p->[$#$p]->{'num_songs'}++; }