Add check for folder item type as well

remotes/origin/stable45
Michael Gapczynski 13 years ago
parent 63b6f20e05
commit f638340d1f
  1. 2
      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

Loading…
Cancel
Save