Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/style.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-10-21 22:44:40 +0200
committerErich Eckner <git@eckner.net>2023-10-21 22:44:40 +0200
commit30648f482508d10529e8b8d4d128d6ce98c9fc5c (patch)
tree1d9b44ff8172b61ce123985a0ebaf62da3e48508 /lib/style.php
parentc6a1a737514fd76cc78e22aae8138c301684a8d7 (diff)
lib/style.php: silence key-array warning/error
Diffstat (limited to 'lib/style.php')
-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