summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuglist.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 196357804..a8c10d1c2 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -456,7 +456,7 @@ $fields =~ s/[&?]cmdtype=[^&]*//g;
my $oldorder;
-if (defined $::FORM{'order'}) {
+if (defined $::FORM{'order'} && trim($::FORM{'order'}) ne "") {
$oldorder = url_quote(", $::FORM{'order'}");
} else {
$oldorder = "";