]> git.ipfire.org Git - people/stevee/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>
Sat, 28 Feb 2015 11:32:25 +0000 (12:32 +0100)
Reference #10748.

html/cgi-bin/guardian.cgi

index ad4f3de7179574e2c83c5b3f7b78be8fd1f11c48..9345d455b6067311168332ea73a2a81ae39c2f4a 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=();