index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/style.php | 2 |
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 |