make sure that $this->userId is initialized before using it as a parameter
This commit is contained in:
parent
e65e6a12f1
commit
f2b86d0227
|
@ -69,6 +69,8 @@ class Stream {
|
||||||
|
|
||||||
public function stream_open( $path, $mode, $options, &$opened_path ) {
|
public function stream_open( $path, $mode, $options, &$opened_path ) {
|
||||||
|
|
||||||
|
$this->userId = \OCP\User::getUser();
|
||||||
|
|
||||||
// Get access to filesystem via filesystemview object
|
// Get access to filesystem via filesystemview object
|
||||||
if ( !self::$view ) {
|
if ( !self::$view ) {
|
||||||
|
|
||||||
|
@ -83,8 +85,6 @@ class Stream {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->userId = \OCP\User::getUser();
|
|
||||||
|
|
||||||
// Get the bare file path
|
// Get the bare file path
|
||||||
$path = str_replace( 'crypt://', '', $path );
|
$path = str_replace( 'crypt://', '', $path );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue