fix comment, remove unused variable
This commit is contained in:
parent
bcb2e87846
commit
b57478fa27
|
@ -805,15 +805,10 @@ class Util {
|
||||||
// Make sure that a share key is generated for the owner too
|
// Make sure that a share key is generated for the owner too
|
||||||
list($owner, $ownerPath) = $this->getUidAndFilename($filePath);
|
list($owner, $ownerPath) = $this->getUidAndFilename($filePath);
|
||||||
|
|
||||||
//$userIds = array( $this->userId );
|
|
||||||
$userIds = array();
|
|
||||||
|
|
||||||
if ( $sharingEnabled ) {
|
if ( $sharingEnabled ) {
|
||||||
|
|
||||||
// Find out who, if anyone, is sharing the file
|
// Find out who, if anyone, is sharing the file
|
||||||
$shareUids = \OCP\Share::getUsersSharingFile( $ownerPath, $owner,true, true, true );
|
$userIds = \OCP\Share::getUsersSharingFile( $ownerPath, $owner,true, true, true );
|
||||||
|
|
||||||
$userIds = array_merge( $userIds, $shareUids );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -889,7 +884,7 @@ class Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@ brief geo recursively through a dir and collect all files and sub files.
|
* @brief geo recursively through a dir and collect all files and sub files.
|
||||||
* @param type $dir relative to the users files folder
|
* @param type $dir relative to the users files folder
|
||||||
* @return array with list of files relative to the users files folder
|
* @return array with list of files relative to the users files folder
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue