mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix cant attach files, if none have been attached to an entry before: Sqlfs\StreamWrapper::mkdir('/apps/calendar/123',0,1) already exist!
This commit is contained in:
parent
6ba07ef64b
commit
015ed03bb6
@ -249,8 +249,9 @@ class StreamWrapper extends LinksParent
|
||||
$current_is_root = Vfs::$is_root; Vfs::$is_root = true;
|
||||
$current_user = Vfs::$user; Vfs::$user = 0;
|
||||
|
||||
$ret = parent::mkdir($path,0,$options|STREAM_MKDIR_RECURSIVE);
|
||||
if ($id) parent::chmod($path,0); // no other rights
|
||||
$sqlfs = new parent();
|
||||
$ret = $sqlfs->mkdir($path,0,$options|STREAM_MKDIR_RECURSIVE);
|
||||
if ($id) $sqlfs->chmod($path,0); // no other rights
|
||||
|
||||
Vfs::$user = $current_user;
|
||||
Vfs::$is_root = $current_is_root;
|
||||
|
Loading…
Reference in New Issue
Block a user