Skip to content
Snippets Groups Projects
Unverified Commit 4a099343 authored by Helmo's avatar Helmo
Browse files

Fix loginc error, backup_download_dir was not initialized in time

Fround by: PHP Deprecated:  is_dir(): Passing null to parameter #1 ($filename) of type string is deprecated in /usr/local/ispconfig/server/lib/classes/backup.inc.php on line 1311
parent a41468bf
No related branches found
No related tags found
1 merge request!1682Fix php 8.1 deprecation warnings
......@@ -1305,13 +1305,13 @@ class backup
foreach ($domains as $rec) {
$domain_id = $rec['domain_id'];
$domain_backup_dir = $backup_dir . '/web' . $domain_id;
$web_path = $rec['document_root'];
$backup_download_dir = $web_path . '/backup';
// Remove backupdir symlink and create as directory instead
if (is_link($backup_download_dir) || !is_dir($backup_download_dir)) {
$web_path = $rec['document_root'];
$app->system->web_folder_protection($web_path, false);
$backup_download_dir = $web_path . '/backup';
if (is_link($backup_download_dir)) {
unlink($backup_download_dir);
}
......
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