Skip to content

Commit 14c0379

Browse files
committed
Add missing document_root field to query, fixes #5625
1 parent a65b051 commit 14c0379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/backup.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ protected static function backups_garbage_collection($server_id, $backup_type =
739739
$server_config = $app->getconf->get_server_config($server_id, 'server');
740740
$backup_dir = trim($server_config['backup_dir']);
741741
$sql = "SELECT * FROM web_backup WHERE server_id = ?";
742-
$sql_domains = "SELECT domain_id,system_user,system_group,backup_interval FROM web_domain WHERE server_id = ? AND (type = 'vhost' OR type = 'vhostsubdomain' OR type = 'vhostalias')";
742+
$sql_domains = "SELECT domain_id,document_root,system_user,system_group,backup_interval FROM web_domain WHERE server_id = ? AND (type = 'vhost' OR type = 'vhostsubdomain' OR type = 'vhostalias')";
743743
array_push($args, $server_id);
744744
array_push($args_domains, $server_id);
745745
if (!empty($backup_type)) {

0 commit comments

Comments
 (0)