Skip to content

Commit 66e7e7b

Browse files
committed
Fix bug where in a multiserver setup, deleting a backup will not remove its details from the master database as well.
1 parent 4d6f1cc commit 66e7e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/backup_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function backup_action($action_name, $data) {
170170

171171
$sql = "DELETE FROM web_backup WHERE server_id = ? AND parent_domain_id = ? AND filename = ?";
172172
$app->db->query($sql, $conf['server_id'], $backup['parent_domain_id'], $backup['filename']);
173-
if($app->db->dbHost != $app->dbmaster->dbHost) $app->dbmaster->query($sql);
173+
if($app->db->dbHost != $app->dbmaster->dbHost) $app->dbmaster->query($sql, $conf['server_id'], $backup['parent_domain_id'], $backup['filename']);
174174
$app->log('unlink '.$backup_dir.'/'.$backup['filename'], LOGLEVEL_DEBUG);
175175
}
176176
}

0 commit comments

Comments
 (0)