mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
fixing the fix: must NOT prepend backup dir for $name===null
This commit is contained in:
parent
f990bbabe2
commit
a24c82ba39
@ -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