mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fixed an issue with 0 not passed or passed as empty minCount; Now forcing it to 0 if empty
This commit is contained in:
parent
38d7aa2b98
commit
5378561274
@ -81,16 +81,16 @@ if ($_POST['save_backup_settings'])
|
||||
if ($_POST['backup_files']==='backup_files') $filesBackup = true;
|
||||
if (empty($minCount))
|
||||
{
|
||||
$minCount = 0;
|
||||
$setup_tpl->set_var('error_msg',htmlspecialchars(lang("'%1' must be integer", lang("backup min count"))));
|
||||
}
|
||||
else
|
||||
{
|
||||
$configValues = array(
|
||||
$configValues = array(
|
||||
'backup_mincount'=>$minCount,
|
||||
'backup_files' =>$filesBackup,
|
||||
);
|
||||
$db_backup->saveConfig($configValues);
|
||||
|
||||
);
|
||||
$db_backup->saveConfig($configValues);
|
||||
if (is_int($minCount) && $minCount>0)
|
||||
{
|
||||
$cleaned_files = array();
|
||||
/* Remove old backups. */
|
||||
$db_backup->housekeeping(&$cleaned_files);
|
||||
|
Loading…
Reference in New Issue
Block a user