Skip to content

Commit 3c27e26

Browse files
author
Till Brehm
committed
Merge branch '5625-missing-backup-folder' into 'develop'
Add missing document_root field to query, fixes #5625 Closes #5625 See merge request ispconfig/ispconfig3!1256
2 parents 432e571 + 14c0379 commit 3c27e26

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)