diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-26 16:20:10 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-26 16:20:10 -0500 |
commit | 1910057900476c5b7509a456a460d70664c01610 (patch) | |
tree | 8bb99b740ba02f963799a0fdb71c76589c209b28 /apps/files_sharing/lib/share | |
parent | b4515d874e5259647886d148db902f9753bbeb81 (diff) | |
download | nextcloud-server-1910057900476c5b7509a456a460d70664c01610.tar.gz nextcloud-server-1910057900476c5b7509a456a460d70664c01610.zip |
Fix shared statuses inside folders
Diffstat (limited to 'apps/files_sharing/lib/share')
-rw-r--r-- | apps/files_sharing/lib/share/folder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/share/folder.php b/apps/files_sharing/lib/share/folder.php index a1bb843d726..bbe4c130bdd 100644 --- a/apps/files_sharing/lib/share/folder.php +++ b/apps/files_sharing/lib/share/folder.php @@ -26,11 +26,11 @@ class OC_Share_Backend_Folder extends OC_Share_Backend_File implements OCP\Share $parents = array($itemSource); while (!empty($parents)) { $parents = "'".implode("','", $parents)."'"; - $query = OC_DB::prepare('SELECT `id`, `name`, `mimetype` FROM `*PREFIX*fscache` WHERE `parent` IN ('.$parents.')'); + $query = OC_DB::prepare('SELECT `fileid`, `name`, `mimetype` FROM `*PREFIX*filecache` WHERE `parent` IN ('.$parents.')'); $result = $query->execute(); $parents = array(); while ($file = $result->fetchRow()) { - $children[] = array('source' => $file['id'], 'file_path' => $file['name']); + $children[] = array('source' => $file['fileid'], 'file_path' => $file['name']); // If a child folder is found look inside it if ($file['mimetype'] == 'httpd/unix-directory') { $parents[] = $file['id']; |