From: myk%mozilla.org <> Date: Tue, 18 Sep 2001 01:55:31 +0000 (+0000) Subject: Fix for bug 90333: Bugzilla now displays an appropriate error message if a user hits... X-Git-Tag: bugzilla-2.14.1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=678c73f7e733bf23d553e94790722dcc6060b2be;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/process_bug.cgi b/process_bug.cgi index 0baadda9ac..1d2bd8898a 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) {