]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 148767: Eliminates warning in rare situations.
authormyk%mozilla.org <>
Tue, 4 Jun 2002 07:15:23 +0000 (07:15 +0000)
committermyk%mozilla.org <>
Tue, 4 Jun 2002 07:15:23 +0000 (07:15 +0000)
Patch by Jouni Heikniemi <jouni@heikniemi.net>
2xr=myk

buglist.cgi

index 438b673ae0c142e620d6c8168c7eb6a101cfb0e8..b7fb72a69f746b4fb634e6d2dacb511ef262d97a 100755 (executable)
@@ -1290,7 +1290,7 @@ my $query = GenerateSQL(\@selectnames, $::buffer);
 ################################################################################
 
 # Add to the query some instructions for sorting the bug list.
-if ($::COOKIE{'LASTORDER'} && !$order || $order =~ /^reuse/i) {
+if ($::COOKIE{'LASTORDER'} && (!$order || $order =~ /^reuse/i)) {
     $order = url_decode($::COOKIE{'LASTORDER'});
     $order_from_cookie = 1;
 }