From 678c73f7e733bf23d553e94790722dcc6060b2be Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 18 Sep 2001 01:55:31 +0000 Subject: Fix for bug 90333: Bugzilla now displays an appropriate error message if a user hits process_bug.cgi without specifying any bugs to change. Patch by Myk Melez r=jake@acutex.net --- process_bug.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'process_bug.cgi') 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) { -- cgit v1.2.1