Make sure the owner always has the right path
This commit is contained in:
parent
594f5b6a29
commit
40eaf71a33
|
@ -253,9 +253,6 @@ class Share extends Constants {
|
|||
// Include owner in list of users, if requested
|
||||
if ($includeOwner) {
|
||||
$shares[] = $ownerUser;
|
||||
if ($returnUserPaths) {
|
||||
$sharePaths[$ownerUser] = $path;
|
||||
}
|
||||
}
|
||||
|
||||
if ($returnUserPaths) {
|
||||
|
@ -283,6 +280,12 @@ class Share extends Constants {
|
|||
}
|
||||
}
|
||||
|
||||
if ($includeOwner) {
|
||||
$sharePaths[$ownerUser] = $path;
|
||||
} else {
|
||||
unset($sharePaths[$ownerUser]);
|
||||
}
|
||||
|
||||
return $sharePaths;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue