]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 93167 - &GroupExists and &GroupIsActive should push and pop sql state
authorbbaetz%student.usyd.edu.au <>
Mon, 3 Jun 2002 20:37:07 +0000 (20:37 +0000)
committerbbaetz%student.usyd.edu.au <>
Mon, 3 Jun 2002 20:37:07 +0000 (20:37 +0000)
r=justdave, jouni

globals.pl

index d22eee65d432663f27ec72acd1868bc32aca36ec..72ea74df9d20aa29ab55a928cde51290e3b1df0e 100644 (file)
@@ -1271,8 +1271,10 @@ sub BugInGroup {
 sub GroupExists {
     my ($groupname) = (@_);
     ConnectToDatabase();
+    PushGlobalSQLState();
     SendSQL("select count(*) from groups where name=" . SqlQuote($groupname));
     my $count = FetchOneColumn();
+    PopGlobalSQLState();
     return $count;
 }
 
@@ -1296,8 +1298,10 @@ sub GroupIsActive {
     my ($groupbit) = (@_);
     $groupbit ||= 0;
     ConnectToDatabase();
+    PushGlobalSQLState();
     SendSQL("select isactive from groups where bit=$groupbit");
     my $isactive = FetchOneColumn();
+    PopGlobalSQLState();
     return $isactive;
 }