summaryrefslogtreecommitdiffstats
path: root/editgroups.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-xeditgroups.cgi3
1 files changed, 1 insertions, 2 deletions
diff --git a/editgroups.cgi b/editgroups.cgi
index c3be719c7..02f24b1e4 100755
--- a/editgroups.cgi
+++ b/editgroups.cgi
@@ -274,8 +274,7 @@ if ($action eq 'new') {
"1," .
SqlQuote($regexp) . ", " .
$isactive . ", NOW())" );
- SendSQL("SELECT last_insert_id()");
- my $gid = FetchOneColumn();
+ my $gid = $dbh->bz_last_key('groups', 'id');
my $admin = GroupNameToId('admin');
# Since we created a new group, give the "admin" group all privileges
# initially.