Skip to content
Snippets Groups Projects
Commit 14c03796 authored by Helmo's avatar Helmo
Browse files

Add missing document_root field to query, fixes #5625

parent a65b051c
No related branches found
No related tags found
No related merge requests found
Pipeline #5743 passed
...@@ -739,7 +739,7 @@ class backup ...@@ -739,7 +739,7 @@ class backup
$server_config = $app->getconf->get_server_config($server_id, 'server'); $server_config = $app->getconf->get_server_config($server_id, 'server');
$backup_dir = trim($server_config['backup_dir']); $backup_dir = trim($server_config['backup_dir']);
$sql = "SELECT * FROM web_backup WHERE server_id = ?"; $sql = "SELECT * FROM web_backup WHERE server_id = ?";
$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')"; $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')";
array_push($args, $server_id); array_push($args, $server_id);
array_push($args_domains, $server_id); array_push($args_domains, $server_id);
if (!empty($backup_type)) { if (!empty($backup_type)) {
......
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