diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-17 12:58:09 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-17 12:58:09 -0400 |
commit | 592569737495233a0018e6aff6869fc328b8a142 (patch) | |
tree | 4611c652b4e80af553ef572388fea958adb83c8c /apps/files_sharing/lib_share.php | |
parent | 683e1250427d75d0d3431c486967059871850d6a (diff) | |
download | nextcloud-server-592569737495233a0018e6aff6869fc328b8a142.tar.gz nextcloud-server-592569737495233a0018e6aff6869fc328b8a142.zip |
Fix bug in getPermissions() and clean-up unlink() and rename()
Diffstat (limited to 'apps/files_sharing/lib_share.php')
-rw-r--r-- | apps/files_sharing/lib_share.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index f682e1a30f1..a4223a137d1 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -264,9 +264,9 @@ class OC_Share { if (count($result) > 0) { return $result[0]['permissions']; } else { - $folders =self::getParentFolders($target); + $folders = self::getParentFolders($target); if ($folders == true) { - $result = $query->execute(array($folders))->fetchAll(); + $result = $query->execute(array($folders['target']))->fetchAll(); if (count($result) > 0) { return $result[0]['permissions']; } |