#12090 Fix intervals

This commit is contained in:
miguel angel rasteu 2023-09-19 17:47:12 +02:00
parent f5c4ce872b
commit 954a225279
1 changed files with 2 additions and 1 deletions

View File

@ -1486,7 +1486,7 @@ function config_update_config()
// --------------------------------------------------
// CUSTOM INTERVAL VALUES
// --------------------------------------------------
$interval_values = get_parameter('interval_values');
$interval_values = $config['interval_values'];
// Add new interval value if is provided.
$interval_value = (float) get_parameter('interval_value', 0);
@ -1528,6 +1528,7 @@ function config_update_config()
$interval_values = implode(',', $interval_values_array);
}
hd($interval_values, true);
if (config_update_value('interval_values', $interval_values, true) === false) {
$error_update[] = __('Delete interval');
}