From: lpsolit%gmail.com <> Date: Fri, 4 Aug 2006 19:45:31 +0000 (+0000) Subject: Bug 347272: Deleting a user account crashes Bugzilla - Patch by Frédéric Buclin ... X-Git-Tag: bugzilla-2.23.3~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12f15c96502752b149300d8a325364afa5d6ecc;p=thirdparty%2Fbugzilla.git Bug 347272: Deleting a user account crashes Bugzilla - Patch by Frédéric Buclin r=wurblzap a=justdave --- diff --git a/editusers.cgi b/editusers.cgi index 1809101d69..4f52117654 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -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()');