X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FCovOp.pm;h=d114726bd440525899d205ad9e62fefe25b751c7;hb=a23c68aad4c5eb92a61f46517daf474c1741c1e5;hp=fc95d33d989a7a3cde1b76b5bf08dcab8a5380d2;hpb=54aa6a9566d2a860c3ca9930886406228d7a1f2c;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'); }