From a5301245d3b705a47673e2dabddbd768f63b232c Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 16 Jul 2024 17:38:14 +0300 Subject: [PATCH] Fix to always show security updates button --- package-updates/index.cgi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package-updates/index.cgi b/package-updates/index.cgi index 35572f8c1..a482cafd5 100755 --- a/package-updates/index.cgi +++ b/package-updates/index.cgi @@ -20,12 +20,10 @@ print &ui_tabs_start([ [ 'pkgs', $text{'index_tabpkgs'} ], # See if any security updates exist $in{'mode'} ||= 'updates'; @avail = &list_for_mode($in{'mode'}, 0); -($sec) = grep { $_->{'security'} } @avail; # Show mode selector (all, updates only, updates and new) @grid = ( ); -foreach $m ('current', 'updates', 'new', - $sec || $in{'mode'} eq 'security' ? ( 'security' ) : ( )) { +foreach $m ('current', 'updates', 'security', 'new') { $mmsg = $text{'index_mode_'.$m}; if ($in{'mode'} eq $m) { push(@mlinks, "$mmsg");