Make sure the owner always has the right path

This commit is contained in:
Joas Schilling 2015-07-07 11:08:21 +02:00
parent 594f5b6a29
commit 40eaf71a33
1 changed files with 6 additions and 3 deletions

View File

@ -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;
}