Commit ceab233d authored by Falko Timme's avatar Falko Timme
Browse files

- MySQL databases: backup_interval must be a string, not an integer.

parent 9e444eb6
...@@ -421,7 +421,7 @@ class page_action extends tform_actions { ...@@ -421,7 +421,7 @@ class page_action extends tform_actions {
//* The Database user shall be owned by the same group then the website //* The Database user shall be owned by the same group then the website
$sys_groupid = $app->functions->intval($web['sys_groupid']); $sys_groupid = $app->functions->intval($web['sys_groupid']);
$backup_interval = $app->functions->intval($web['backup_interval']); $backup_interval = $web['backup_interval'];
$backup_copies = $app->functions->intval($web['backup_copies']); $backup_copies = $app->functions->intval($web['backup_copies']);
$sql = "UPDATE web_database SET sys_groupid = '$sys_groupid', backup_interval = '$backup_interval', backup_copies = '$backup_copies' WHERE database_id = ".$this->id; $sql = "UPDATE web_database SET sys_groupid = '$sys_groupid', backup_interval = '$backup_interval', backup_copies = '$backup_copies' WHERE database_id = ".$this->id;
...@@ -437,7 +437,7 @@ class page_action extends tform_actions { ...@@ -437,7 +437,7 @@ class page_action extends tform_actions {
//* The Database user shall be owned by the same group then the website //* The Database user shall be owned by the same group then the website
$sys_groupid = $app->functions->intval($web['sys_groupid']); $sys_groupid = $app->functions->intval($web['sys_groupid']);
$backup_interval = $app->functions->intval($web['backup_interval']); $backup_interval = $web['backup_interval'];
$backup_copies = $app->functions->intval($web['backup_copies']); $backup_copies = $app->functions->intval($web['backup_copies']);
$sql = "UPDATE web_database SET sys_groupid = '$sys_groupid', backup_interval = '$backup_interval', backup_copies = '$backup_copies' WHERE database_id = ".$this->id; $sql = "UPDATE web_database SET sys_groupid = '$sys_groupid', backup_interval = '$backup_interval', backup_copies = '$backup_copies' WHERE database_id = ".$this->id;
......
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