Merge pull request #22159 from owncloud/fix_21678

Gracefull handle link shares rename hook
This commit is contained in:
Thomas Müller 2016-02-05 16:36:04 +01:00
commit 7568c40275
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,12 @@ class Shared_Updater {
*/
static private function moveShareToShare($path) {
$userFolder = \OC::$server->getUserFolder();
// If the user folder can't be constructed (e.g. link share) just return.
if ($userFolder === null) {
return;
}
$src = $userFolder->get($path);
$type = $src instanceof \OCP\Files\File ? 'file' : 'folder';