Fix shared status for files inside a shared folder

This commit is contained in:
Michael Gapczynski 2011-12-17 21:12:36 -05:00
parent dc641943d9
commit 9e50cecf27

View file

@ -19,6 +19,7 @@ $source = dirname($source);
while ($source != "" && $source != "/" && $source != "." && $source != $userDirectory) { while ($source != "" && $source != "/" && $source != "." && $source != $userDirectory) {
if ($values = OC_Share::getMySharedItem($source)) { if ($values = OC_Share::getMySharedItem($source)) {
$values = array_values($values); $values = array_values($values);
$users = array();
$parentUsers = array(); $parentUsers = array();
for ($i = 0; $i < count($values); $i++) { for ($i = 0; $i < count($values); $i++) {
if ($values[$i]['uid_shared_with'] == OC_Share::PUBLICLINK) { if ($values[$i]['uid_shared_with'] == OC_Share::PUBLICLINK) {