Bug 347272: Deleting a user account crashes Bugzilla - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
git-svn-id: svn://10.0.0.236/trunk@206558 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
cb399ce269
commit
221e45c9fe
@ -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()');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user