Skip to content

Commit ceab233

Browse files
committed
- MySQL databases: backup_interval must be a string, not an integer.
1 parent 9e444eb commit ceab233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/sites/database_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ function onAfterInsert() {
421421

422422
//* The Database user shall be owned by the same group then the website
423423
$sys_groupid = $app->functions->intval($web['sys_groupid']);
424-
$backup_interval = $app->functions->intval($web['backup_interval']);
424+
$backup_interval = $web['backup_interval'];
425425
$backup_copies = $app->functions->intval($web['backup_copies']);
426426

427427
$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 @@ function onAfterUpdate() {
437437

438438
//* The Database user shall be owned by the same group then the website
439439
$sys_groupid = $app->functions->intval($web['sys_groupid']);
440-
$backup_interval = $app->functions->intval($web['backup_interval']);
440+
$backup_interval = $web['backup_interval'];
441441
$backup_copies = $app->functions->intval($web['backup_copies']);
442442

443443
$sql = "UPDATE web_database SET sys_groupid = '$sys_groupid', backup_interval = '$backup_interval', backup_copies = '$backup_copies' WHERE database_id = ".$this->id;

0 commit comments

Comments
 (0)