Skip to content
Extraits de code Groupes Projets
Valider f0e1b62f rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

correction insertion vidéo

Il fallait déférencer le chan
parent 19e25246
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -332,7 +332,7 @@ sub on_speak ...@@ -332,7 +332,7 @@ sub on_speak
my $sth = $dbh->prepare_cached('INSERT INTO playbot (date, type, url, sender_irc, sender, title, chan) VALUES (NOW(),?,?,?,?,?,?)'); my $sth = $dbh->prepare_cached('INSERT INTO playbot (date, type, url, sender_irc, sender, title, chan) VALUES (NOW(),?,?,?,?,?,?)');
$log->error("Couldn't prepare querie; aborting") unless (defined $sth); $log->error("Couldn't prepare querie; aborting") unless (defined $sth);
$sth->execute($site, $content{'url'}, $nick, $content{'author'}, $content{'title'}, $chan) $sth->execute($site, $content{'url'}, $nick, $content{'author'}, $content{'title'}, $chan->[0])
or $log->error("Couldn't finish transaction: " . $dbh->errstr); or $log->error("Couldn't finish transaction: " . $dbh->errstr);
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter