aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-12 14:29:51 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-12 14:29:51 -0400
commitf638340d1fb5d70e6776949d3cdc72597deba4ca (patch)
treeb675488bc7c81ea5099ab1d53a22951637626b78
parent63b6f20e05391e65da1569ae5e897d1e279081f2 (diff)
downloadnextcloud-server-f638340d1fb5d70e6776949d3cdc72597deba4ca.tar.gz
nextcloud-server-f638340d1fb5d70e6776949d3cdc72597deba4ca.zip
Add check for folder item type as well
-rw-r--r--lib/public/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 3bf0a76a5d1..9743edd4a63 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -438,7 +438,7 @@ class Share {
if (isset($uidOwner)) {
$source = $backend->getSource($item, $uidOwner);
// If item type is a file, file source needs to be checked in case the item was converted
- if ($itemType == 'file') {
+ if ($itemType == 'file' || $itemType == 'folder') {
$where .= " AND file_source = ".\OC_FileCache::getId($source['file']);
} else {
// Check if this item depends on a file and getSource() returned an array