fixing the fix: must NOT prepend backup dir for $name===null

This commit is contained in:
ralf 2024-04-04 14:23:48 +02:00
parent f990bbabe2
commit a24c82ba39

View File

@ -195,7 +195,7 @@ class Backup
*/ */
public function fopen_backup(string $name=null, bool $reading=false, bool $un_compress=true) public function fopen_backup(string $name=null, bool $reading=false, bool $un_compress=true)
{ {
if ($name[0] !== '/') if ($name && $name[0] !== '/')
{ {
$name = $this->backup_dir.'/'.basename($name); $name = $this->backup_dir.'/'.basename($name);
} }