forgot something

This commit is contained in:
briandilley 2006-10-23 23:52:13 +00:00
parent df631da6e3
commit 8da70ca53a

View File

@ -64,6 +64,11 @@ sub validate_captcha {
# get count
my $row = $sth->fetchrow_hashref();
my $count = $row->{"count"};
# delete it
$sth = $dbh->prepare("DELETE FROM captchas WHERE id=?");
$sth->bind_param(1, $cid);
$sth->execute();
# return
return ($count>0);