From 5e19854d47202073773e2cde3eaabdf66099a85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 13 Nov 2012 16:04:27 +0100 Subject: [PATCH] always calll fopen --- apps/files_sharing/lib/sharedstorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 98f6f3f0e2..d2489f9cba 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; }