summaryrefslogtreecommitdiffstats
path: root/request.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'request.cgi')
-rwxr-xr-xrequest.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/request.cgi b/request.cgi
index a494128d8..445783d47 100755
--- a/request.cgi
+++ b/request.cgi
@@ -151,8 +151,10 @@ sub queue {
push(@excluded_columns, 'requester') unless $cgi->param('do_union');
}
if (defined $cgi->param('requestee') && $cgi->param('requestee') ne "") {
- push(@criteria, "requestees.login_name = " .
- SqlQuote($cgi->param('requestee')));
+ if ($cgi->param('requestee') ne "-") {
+ push(@criteria, "requestees.login_name = " . SqlQuote($cgi->param('requestee')));
+ }
+ else { push(@criteria, "flags.requestee_id IS NULL") }
push(@excluded_columns, 'requestee') unless $cgi->param('do_union');
}