summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprocess_bug.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 0baadda9a..1d2bd8898 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -68,6 +68,11 @@ if (defined $::FORM{'id'}) {
}
}
+# Make sure there are bugs to process.
+scalar(@idlist)
+ || DisplayError("You did not select any bugs to modify.")
+ && exit;
+
# For each bug being modified, make sure its ID is a valid bug number
# representing an existing bug that the user is authorized to access.
foreach my $id (@idlist) {