diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 98f6f3f0e21..d2489f9cbad 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -413,8 +413,8 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common { if ( $write && $storage->touch($this->getInternalPath($source)) ) { OC_FileCache::put($intPath ,array('user'=>$user), '/'.$user.'/files'); - return $storage->fopen($this->getInternalPath($source), $mode); - } + } + return $storage->fopen($this->getInternalPath($source), $mode); } return false; }