]> git.ipfire.org Git - 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>
Fri, 29 Jul 2016 11:17:55 +0000 (13:17 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/guardian.cgi

index 745a4a68f014c65df529e3472f8a504c0661bd18..5547ee45179a6a7831cfe2349ac91c0e1da08b8c 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();