Skip to content

Commit e149be2

Browse files
author
Till Brehm
committed
Merge branch 'patch-3' into 'stable-3.1'
Wrong table used to remove deleted backup record for website. File gets removed … …but not database record. See merge request !391
2 parents c4aba1a + 163fa8c commit e149be2

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
@@ -167,7 +167,7 @@ public function backup_action($action_name, $data) {
167167
if(file_exists($backup_dir.'/'.$backup['filename']) && !stristr($backup_dir.'/'.$backup['filename'], '..') && !stristr($backup_dir.'/'.$backup['filename'], 'etc')) {
168168
unlink($backup_dir.'/'.$backup['filename']);
169169

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

0 commit comments

Comments
 (0)