From: Stefan Schantl Date: Fri, 2 Apr 2021 08:12:02 +0000 (+0200) Subject: ids.cgi: Fix display issue with colum backgound colour in provider list. X-Git-Tag: v2.27-core164~210^2~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e1a09f9255414357a5b8bb6ffc898dbf5c9a791;p=ipfire-2.x.git ids.cgi: Fix display issue with colum backgound colour in provider list. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 927890ab52..9eb87273bd 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1160,6 +1160,8 @@ print < END + my $line = 1; + # Check if some providers has been configured. if (keys (%used_providers)) { my $col = ""; @@ -1176,7 +1178,7 @@ END my $status = $used_providers{$id}[3]; # Check if the item number is even or not. - if ($id % 2) { + if ($line % 2) { $col="bgcolor='$color{'color22'}'"; } else { $col="bgcolor='$color{'color20'}'"; @@ -1244,6 +1246,9 @@ print < END + # Increment lines value. + $line++; + } } else {