]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 320727: Incorrect footer if no query is passed to buglist.cgi - Patch by Frédéric...
authorlpsolit%gmail.com <>
Wed, 28 Dec 2005 19:55:40 +0000 (19:55 +0000)
committerlpsolit%gmail.com <>
Wed, 28 Dec 2005 19:55:40 +0000 (19:55 +0000)
buglist.cgi

index f41f6831913b29b887152d039864752fe661f479..9e6358d4972a015fb62037cbd448f0dabcbbd5b9 100755 (executable)
@@ -59,6 +59,10 @@ use vars qw($db_name
 my $cgi = Bugzilla->cgi;
 my $dbh = Bugzilla->dbh;
 
+# We have to check the login here to get the correct footer
+# if an error is thrown.
+Bugzilla->login();
+
 if (length($::buffer) == 0) {
     print $cgi->header(-refresh=> '10; URL=query.cgi');
     ThrowUserError("buglist_parameters_required");
@@ -80,9 +84,6 @@ if ($dotweak) {
                                          object => "multiple_bugs"});
     GetVersionTable();
 }
-else {
-    Bugzilla->login();
-}
 
 # Hack to support legacy applications that think the RDF ctype is at format=rdf.
 if (defined $cgi->param('format') && $cgi->param('format') eq "rdf"