X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FCovOp.pm;h=d114726bd440525899d205ad9e62fefe25b751c7;hb=6cfdb51738eb18fc98e027f74a13a1d01631f789;hp=fc95d33d989a7a3cde1b76b5bf08dcab8a5380d2;hpb=09612ee9bbec26e1ee659f5ee925ef63a01d61b2;p=ndwebbie.git diff --git a/lib/NDWeb/Controller/CovOp.pm b/lib/NDWeb/Controller/CovOp.pm index fc95d33..d114726 100644 --- a/lib/NDWeb/Controller/CovOp.pm +++ b/lib/NDWeb/Controller/CovOp.pm @@ -38,10 +38,10 @@ sub distwhores : Local { sub marktarget : Local { my ( $self, $c, $target ) = @_; my $dbh = $c->model; - my $update = $dbh->prepare(q{INSERT INTO covop_attacks (uid,id,tick) VALUES(?,?,tick())}); - $update->execute($c->user->id,$target); - + eval{ + $update->execute($c->user->id,$target); + }; $c->forward('/redirect'); }