]> source.dussan.org Git - nextcloud-server.git/commitdiff
always calll fopen
authorBjörn Schießle <schiessle@owncloud.com>
Tue, 13 Nov 2012 15:04:27 +0000 (16:04 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Tue, 13 Nov 2012 15:04:27 +0000 (16:04 +0100)
apps/files_sharing/lib/sharedstorage.php

index 98f6f3f0e21e9f7d952af5822526b769d85c4286..d2489f9cbad9d899214d20d2dca889eaf16aa0ec 100644 (file)
@@ -413,8 +413,8 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common {
 \r
                        if ( $write && $storage->touch($this->getInternalPath($source)) ) {\r
                                OC_FileCache::put($intPath ,array('user'=>$user), '/'.$user.'/files');\r
-                               return $storage->fopen($this->getInternalPath($source), $mode);\r
-                       }                       
+                       }
+                       return $storage->fopen($this->getInternalPath($source), $mode);
                }
                return false;
        }