From 30648f482508d10529e8b8d4d128d6ce98c9fc5c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 21 Oct 2023 22:44:40 +0200 Subject: lib/style.php: silence key-array warning/error --- lib/style.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] . "\n"; } else -- cgit v1.2.3-54-g00ecf