mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
* Filemanager: fix PHP Fatal error when changing ownership or permissions
This commit is contained in:
parent
fdd2ac22c3
commit
78893ad901
@ -862,14 +862,14 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface
|
||||
return $this->chmod($path, $value);
|
||||
|
||||
case STREAM_META_OWNER_NAME:
|
||||
if (($value = $GLOBALS['egw']->account->name2id($value, 'account_lid', 'u')) === false)
|
||||
if (($value = $GLOBALS['egw']->accounts->name2id($value, 'account_lid', 'u')) === false)
|
||||
return false;
|
||||
// fall through
|
||||
case STREAM_META_OWNER:
|
||||
return $this->chown($path, $value);
|
||||
|
||||
case STREAM_META_GROUP_NAME:
|
||||
if (($value = $GLOBALS['egw']->account->name2id($value, 'account_lid', 'g')) === false)
|
||||
if (($value = $GLOBALS['egw']->accounts->name2id($value, 'account_lid', 'g')) === false)
|
||||
return false;
|
||||
// fall through
|
||||
case STREAM_META_GROUP:
|
||||
|
@ -507,14 +507,14 @@ class StreamWrapper implements StreamWrapperIface
|
||||
return chmod($url, $value);
|
||||
|
||||
case STREAM_META_OWNER_NAME:
|
||||
if (($value = $GLOBALS['egw']->account->name2id($value, 'account_lid', 'u')) === false)
|
||||
if (($value = $GLOBALS['egw']->accounts->name2id($value, 'account_lid', 'u')) === false)
|
||||
return false;
|
||||
// fall through
|
||||
case STREAM_META_OWNER:
|
||||
return chown($url, $value);
|
||||
|
||||
case STREAM_META_GROUP_NAME:
|
||||
if (($value = $GLOBALS['egw']->account->name2id($value, 'account_lid', 'g')) === false)
|
||||
if (($value = $GLOBALS['egw']->accounts->name2id($value, 'account_lid', 'g')) === false)
|
||||
return false;
|
||||
// fall through
|
||||
case STREAM_META_GROUP:
|
||||
|
Loading…
Reference in New Issue
Block a user