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 2a822ea0a8
commit 7b815e4338

View File

@ -195,7 +195,7 @@ class Backup
*/
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);
}