mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fixing the fix: must NOT prepend backup dir for $name===null
This commit is contained in:
parent
2a822ea0a8
commit
7b815e4338
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user