Skip to content
Snippets Groups Projects
Commit 66e7e7b9 authored by Costin's avatar Costin
Browse files

Fix bug where in a multiserver setup, deleting a backup will not remove its...

Fix bug where in a multiserver setup, deleting a backup will not remove its details from the master database as well.
parent 4d6f1cce
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@ class backup_plugin {
$sql = "DELETE FROM web_backup WHERE server_id = ? AND parent_domain_id = ? AND filename = ?";
$app->db->query($sql, $conf['server_id'], $backup['parent_domain_id'], $backup['filename']);
if($app->db->dbHost != $app->dbmaster->dbHost) $app->dbmaster->query($sql);
if($app->db->dbHost != $app->dbmaster->dbHost) $app->dbmaster->query($sql, $conf['server_id'], $backup['parent_domain_id'], $backup['filename']);
$app->log('unlink '.$backup_dir.'/'.$backup['filename'], LOGLEVEL_DEBUG);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment