mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:07 +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)
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user