we are sharing the same file again if item_source of the already shared file and the newly shared file is the same. Therefore we can use the same target name

This commit is contained in:
Björn Schießle 2012-10-02 21:37:10 +02:00
parent db954f5aba
commit 431d92e7b2
1 changed files with 3 additions and 0 deletions

View File

@ -1014,6 +1014,9 @@ class Share {
continue;
}
}
if ($item['uid_owner'] == $uidOwner && $item['item_source'] == \OC_FileCache::getId($itemSource) ) {
return $target;
}
}
if (!isset($exclude)) {
$exclude = array();