Commit bf279876 authored by Franco Fichtner's avatar Franco Fichtner

system/settings: useless code is useless

(cherry picked from commit d516b8f4)
parent ebeef54e
......@@ -114,9 +114,6 @@ if (isset($config['system']['firmware']['flavour'])) {
$pconfig['flavour'] = $config['system']['firmware']['flavour'];
}
$changedesc = gettext("System") . ": ";
$changecount = 0;
if (isset($_POST['timezone']) && $pconfig['timezone'] <> $_POST['timezone']) {
filter_pflog_start();
}
......@@ -132,9 +129,6 @@ foreach($interfaces as $interface) {
}
if ($_POST) {
$changecount++;
unset($input_errors);
$pconfig = $_POST;
......@@ -306,8 +300,7 @@ if ($_POST) {
}
}
if ($changecount > 0)
write_config($changedesc);
write_config();
$retval = 0;
$retval = system_hostname_configure();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment