fix PHP Fatal error: Access to undeclared static property: EGroupware\Api\Vfs\StreamWrapper::$is_root

This commit is contained in:
Ralf Becker 2016-07-27 11:08:36 +02:00
parent b9314580a5
commit 77bafe49fd

View File

@ -1220,7 +1220,7 @@ class StreamWrapper implements StreamWrapperIface
if (self::LOG_LEVEL > 1) error_log(__METHOD__.'('.array2string($url).','.array2string($path).') returns '.array2string(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!');
return false; // only root can mount
@ -1269,7 +1269,7 @@ class StreamWrapper implements StreamWrapperIface
*/
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!');
return false; // only root can mount