mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +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);
|
return $this->chmod($path, $value);
|
||||||
|
|
||||||
case STREAM_META_OWNER_NAME:
|
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;
|
return false;
|
||||||
// fall through
|
// fall through
|
||||||
case STREAM_META_OWNER:
|
case STREAM_META_OWNER:
|
||||||
return $this->chown($path, $value);
|
return $this->chown($path, $value);
|
||||||
|
|
||||||
case STREAM_META_GROUP_NAME:
|
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;
|
return false;
|
||||||
// fall through
|
// fall through
|
||||||
case STREAM_META_GROUP:
|
case STREAM_META_GROUP:
|
||||||
|
@ -507,14 +507,14 @@ class StreamWrapper implements StreamWrapperIface
|
|||||||
return chmod($url, $value);
|
return chmod($url, $value);
|
||||||
|
|
||||||
case STREAM_META_OWNER_NAME:
|
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;
|
return false;
|
||||||
// fall through
|
// fall through
|
||||||
case STREAM_META_OWNER:
|
case STREAM_META_OWNER:
|
||||||
return chown($url, $value);
|
return chown($url, $value);
|
||||||
|
|
||||||
case STREAM_META_GROUP_NAME:
|
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;
|
return false;
|
||||||
// fall through
|
// fall through
|
||||||
case STREAM_META_GROUP:
|
case STREAM_META_GROUP:
|
||||||
|
Loading…
Reference in New Issue
Block a user