Add check for folder item type as well

remotes/origin/stable45
Michael Gapczynski 2012-07-12 14:29:51 +07:00
parent 63b6f20e05
commit f638340d1f
1 changed files with 1 additions and 1 deletions

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