From 814addc504ded181a28142903dd0ecb156f4a328 Mon Sep 17 00:00:00 2001
From: "bbaetz%student.usyd.edu.au" <>
Date: Mon, 3 Jun 2002 20:36:39 +0000
Subject: [PATCH] Bug 93167 - &GroupExists and &GroupIsActive should push and
 pop sql state r=justdave, jouni

---
 globals.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/globals.pl b/globals.pl
index bb6a0abc5..637955bd6 100644
--- a/globals.pl
+++ b/globals.pl
@@ -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;
 }
 
-- 
2.24.1