Add extra check for opendir() so it only adds the file to fakedirs if it has a different name than the source

remotes/origin/stable
Michael Gapczynski 14 years ago
parent f3f8a96c6d
commit 1a6718c979
  1. 4
      apps/files_sharing/sharedstorage.php

@ -99,8 +99,8 @@ class OC_FILESTORAGE_SHARED extends OC_FILESTORAGE {
$sources = array();
$targets = array();
foreach ($modifiedItems as $item) {
// If item is in current directory, add it to the arrays
if (dirname($item['target']) == $path) {
// If the item is in the current directory and has a different name than the source, add it to the arrays
if (dirname($item['target']) == $path && basename($item['source']) != basename($item['target'])) {
$sources[] = basename($item['source']);
$targets[] = basename($item['target']);
}

Loading…
Cancel
Save