From 0a5d682ce0185df2588004b2b965159abdb5ef2a Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 29 Dec 2006 18:03:54 +0000 Subject: [PATCH] rollback if we haven't commited at the end --- ND.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ND.pm b/ND.pm index cfa73e5..70000c8 100755 --- a/ND.pm +++ b/ND.pm @@ -66,7 +66,7 @@ sub page { ,undef,$ENV{'REMOTE_USER'}); our ($TICK) = $DBH->selectrow_array('SELECT tick()',undef); - $TICK = 0 unless defined TICK; + $TICK = 0 unless defined $TICK; my $query = $DBH->prepare('SELECT groupname,attack,gid from groupmembers NATURAL JOIN groups WHERE uid = ?'); @@ -130,6 +130,7 @@ sub page { print $output; + $DBH->rollback; $DBH->disconnect; $DBH = undef; $UID = undef; -- 2.39.2