diff options
author | lpsolit%gmail.com <> | 2005-10-18 06:28:16 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-18 06:28:16 +0200 |
commit | 97916f9a31574776b13b975ee87f0483cd65fa9b (patch) | |
tree | 4eef5c06cee6c6d62143aeee83b174b5f8029ee7 | |
parent | 1f9c83ae81c5c81d005fa0d9a428e23ea5126576 (diff) | |
download | bugzilla-97916f9a31574776b13b975ee87f0483cd65fa9b.tar.gz bugzilla-97916f9a31574776b13b975ee87f0483cd65fa9b.tar.xz |
Bug 305979: Removing a user account who was requested to set a flag at least once may return wrong information - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
-rwxr-xr-x | editusers.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi index 049bfabf7..d967123a7 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -428,7 +428,7 @@ if ($action eq 'search') { 'SELECT COUNT(*) FROM bugs_activity WHERE who = ?', undef, $otherUserID); $vars->{'flags'}{'requestee'} = $dbh->selectrow_array( - 'SELECT COUNT(*) FROM flags WHERE requestee_id = ?', + 'SELECT COUNT(*) FROM flags WHERE requestee_id = ? AND is_active = 1', undef, $otherUserID); $vars->{'flags'}{'setter'} = $dbh->selectrow_array( 'SELECT COUNT(*) FROM flags WHERE setter_id = ?', |