]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
guardian.cgi: Suppress warnings for ${Header::colourgreen} variable.
authorMatthias Fischer <fischerm@ipfire.org>
Sat, 28 Feb 2015 10:57:33 +0000 (11:57 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 29 Jul 2016 11:17:55 +0000 (13:17 +0200)
Reference #10748.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/guardian.cgi

index fa7947eb9b14ba4698a4179cd7e58273ffb8a403..33faf23eddc1c61bde433fb16d357924f5738630 100644 (file)
@@ -31,7 +31,11 @@ require "${General::swroot}/lang.pl";
 require "${General::swroot}/header.pl";
 
 #workaround to suppress a warning when a variable is used only once
-my @dummy = ( ${Header::colouryellow} );
+my @dummy = (
+       ${Header::colourred},
+       ${Header::colourgreen}
+);
+
 undef (@dummy);
 
 my $string=();