]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 347272: Deleting a user account crashes Bugzilla - Patch by Frédéric Buclin ...
authorlpsolit%gmail.com <>
Fri, 4 Aug 2006 19:45:31 +0000 (19:45 +0000)
committerlpsolit%gmail.com <>
Fri, 4 Aug 2006 19:45:31 +0000 (19:45 +0000)
editusers.cgi

index 1809101d6998076c70d2b30ac60f627f9f72ae24..4f52117654ce58b6ffa52cadc3f3b0ab2ea91293 100755 (executable)
@@ -567,10 +567,8 @@ if ($action eq 'search') {
     Bugzilla->logout_user($otherUser);
 
     # Get the named query list so we can delete namedquery_group_map entries.
-    my $namedqueries_as_string = join(', ', $dbh->selectcol_arrayref(
-        'SELECT id FROM namedqueries WHERE userid = ?',
-        undef,
-        $otherUserID));
+    my $namedqueries_as_string = join(', ', @{$dbh->selectcol_arrayref(
+        'SELECT id FROM namedqueries WHERE userid = ?', undef, $otherUserID)});
 
     # Get the timestamp for LogActivityEntry.
     my $timestamp = $dbh->selectrow_array('SELECT NOW()');