diff --git a/lib/sites/parser.pm b/lib/sites/parser.pm index 8db61c776b45d2012b97781964621271faac93af..6ad79126fc767201d648b91a0c605a80290cf351 100644 --- a/lib/sites/parser.pm +++ b/lib/sites/parser.pm @@ -85,20 +85,20 @@ sub parse { or $log->error("Couldn't finish transaction: " . $dbh->errstr); $id = $sth->fetch->[0]; + } - # get tags - $sth = $dbh->prepare("select tag - from playbot_tags - where id = ? + # get tags + $sth = $dbh->prepare("select tag + from playbot_tags + where id = ? "); - $sth->execute($id); + $sth->execute($id); - while (my $data = $sth->fetch) { - my $tag = $data->[0]; - $tag =~ s/([a-zA-Z0-9_-]+)/#$1/; - push @tags, $tag; - } - } + while (my $data = $sth->fetch) { + my $tag = $data->[0]; + $tag =~ s/([a-zA-Z0-9_-]+)/#$1/; + push @tags, $tag; + } # insertion du chan my $sth = $dbh->prepare_cached('