From e5a36c500d8d787c5df746712792785a131ca75f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 7 Feb 2012 02:19:34 +0100 Subject: [PATCH] Fix syntax errors. --- html/do-start-round.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/do-start-round.pl b/html/do-start-round.pl index 6a9738d..fe4139a 100755 --- a/html/do-start-round.pl +++ b/html/do-start-round.pl @@ -40,7 +40,7 @@ if ($round == 1) { # First of all, check that there are no null values! my $ref = $dbh->selectrow_hashref('SELECT COUNT(*) AS num_incomplete FROM scores WHERE tournament=? AND round=? AND (song IS NULL OR playmode IS NULL OR difficulty IS NULL OR chosen IS NULL or score IS NULL)', undef, $tournament, $round-1); if ($ref->{'num_incomplete'} != 0) { - ccbs::user_error(_("There's still") . $ref->{'num_incomplete'} . _("songs left in this round which don't have all data registered."); + ccbs::user_error(_("There's still") . $ref->{'num_incomplete'} . _("songs left in this round which don't have all data registered.")); } # Find out how many people will go on from the _current_ group (ie. the one @@ -118,7 +118,7 @@ for my $g (1..$num_groups) { my $ref = $dbh->selectrow_hashref('SELECT * FROM machinesongs NATURAL JOIN songratings WHERE song NOT IN ( SELECT song FROM randomsongsused ) AND machine=( SELECT machine FROM tournaments WHERE tournament=? ) AND playmode=\'single\' AND difficulty=\'expert\' ORDER BY random() LIMIT 1', undef, $tournament); if (!defined($ref)) { - ccbs::user_error(_("There aren't any songs left in the song selector!"); + ccbs::user_error(_("There aren't any songs left in the song selector!")); } $dbh->do('INSERT INTO randomsongsused (song) VALUES (?)', undef, $ref->{'song'}); -- 2.39.2