]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
guardian.cgi: Allways read-in settings.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 1 Nov 2014 12:42:53 +0000 (13:42 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 1 Nov 2014 12:42:53 +0000 (13:42 +0100)
html/cgi-bin/guardian.cgi

index 059451f6efe6b8050f2fede3f9cef1a04cd8f2f1..005a1c87df84a5f56528976cfc2e787ae3394c12 100644 (file)
@@ -249,12 +249,10 @@ if ($settings{'ACTION'} eq $Lang::tr{'save'}) {
 
        # Call helper to flush iptables chain from guardian.
        system("/usr/local/bin/guardianctrl flush-chain &>/dev/null");
-
-} else {
-        # Load settings from file.
-        &General::readhash("${General::swroot}/guardian/settings", \%settings);
 }
 
+# Load settings from file.
+&General::readhash("${General::swroot}/guardian/settings", \%settings);
 
 # Call functions to generate whole page.
 &showMainBox();