Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/style.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/style.php b/lib/style.php
index b7efc21..18e9a5e 100644
--- a/lib/style.php
+++ b/lib/style.php
@@ -372,7 +372,7 @@ function print_listing($list, $print_order_links, $list_content_type) {
"&" . $_SERVER['QUERY_STRING'] . "&"
),
1) . "sort=";
- if ($_GET["sort"] == $get)
+ if (array_key_exists("sort", $_GET) && ($_GET["sort"] == $get))
print "-";
print $get . "\" title=\"Sort packages by " . $sort["title"] . "\">" . $sort["label"] . "</a>\n";
} else