mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-01 16:51:33 +01:00
fix PHP Fatal error: Access to undeclared static property: EGroupware\Api\Vfs\StreamWrapper::$is_root
This commit is contained in:
parent
b9314580a5
commit
77bafe49fd
@ -1220,7 +1220,7 @@ class StreamWrapper implements StreamWrapperIface
|
|||||||
if (self::LOG_LEVEL > 1) error_log(__METHOD__.'('.array2string($url).','.array2string($path).') returns '.array2string(self::$fstab));
|
if (self::LOG_LEVEL > 1) error_log(__METHOD__.'('.array2string($url).','.array2string($path).') returns '.array2string(self::$fstab));
|
||||||
return self::$fstab;
|
return self::$fstab;
|
||||||
}
|
}
|
||||||
if (!self::$is_root)
|
if (!Vfs::$is_root)
|
||||||
{
|
{
|
||||||
if (self::LOG_LEVEL > 0) error_log(__METHOD__.'('.array2string($url).','.array2string($path).') permission denied, you are NOT root!');
|
if (self::LOG_LEVEL > 0) error_log(__METHOD__.'('.array2string($url).','.array2string($path).') permission denied, you are NOT root!');
|
||||||
return false; // only root can mount
|
return false; // only root can mount
|
||||||
@ -1269,7 +1269,7 @@ class StreamWrapper implements StreamWrapperIface
|
|||||||
*/
|
*/
|
||||||
static function umount($path)
|
static function umount($path)
|
||||||
{
|
{
|
||||||
if (!self::$is_root)
|
if (!Vfs::$is_root)
|
||||||
{
|
{
|
||||||
if (self::LOG_LEVEL > 0) error_log(__METHOD__.'('.array2string($path).','.array2string($path).') permission denied, you are NOT root!');
|
if (self::LOG_LEVEL > 0) error_log(__METHOD__.'('.array2string($path).','.array2string($path).') permission denied, you are NOT root!');
|
||||||
return false; // only root can mount
|
return false; // only root can mount
|
||||||
|
Loading…
Reference in New Issue
Block a user