Commit fa5c4c5b authored by Franco Fichtner's avatar Franco Fichtner

config manager: scrub a marginally useful save message

(cherry picked from commit 7bff127c)
parent bf279876
...@@ -38,12 +38,10 @@ $confvers = $cnf->getBackups(true); ...@@ -38,12 +38,10 @@ $confvers = $cnf->getBackups(true);
if (isset($_POST['backupcount'])) { if (isset($_POST['backupcount'])) {
if (is_numeric($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) { if (is_numeric($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) {
$config['system']['backupcount'] = $_POST['backupcount']; $config['system']['backupcount'] = $_POST['backupcount'];
$changedescr = $config['system']['backupcount'];
} else { } else {
unset($config['system']['backupcount']); unset($config['system']['backupcount']);
$changedescr = "(platform default)";
} }
write_config("Changed backup revision count to {$changedescr}"); write_config('Changed backup revision count');
} elseif ($_POST) { } elseif ($_POST) {
if (!isset($_POST['confirm']) || ($_POST['confirm'] != "Confirm") || (!isset($_POST['newver']) && !isset($_POST['rmver']))) { if (!isset($_POST['confirm']) || ($_POST['confirm'] != "Confirm") || (!isset($_POST['newver']) && !isset($_POST['rmver']))) {
header("Location: diag_confbak.php"); header("Location: diag_confbak.php");
......
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