index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2023-10-21 22:44:40 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-10-21 22:44:40 +0200 |
commit | 30648f482508d10529e8b8d4d128d6ce98c9fc5c (patch) | |
tree | 1d9b44ff8172b61ce123985a0ebaf62da3e48508 /lib/style.php | |
parent | c6a1a737514fd76cc78e22aae8138c301684a8d7 (diff) |
-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 |