diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-10-22 14:10:15 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-10-23 11:35:29 +0200 |
commit | 38bb503ff6fd07fe5c65e5f06add98663d9cdf3e (patch) | |
tree | f9ed2359760da64899bd7d5b32b194971ce7c12b /lib/filesystem.php | |
parent | 74740fb71ae6de34c5ab6cc14fe7284599360fc9 (diff) | |
download | nextcloud-server-38bb503ff6fd07fe5c65e5f06add98663d9cdf3e.tar.gz nextcloud-server-38bb503ff6fd07fe5c65e5f06add98663d9cdf3e.zip |
fix fopen
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index 3497431f1ee..cae8ead5b16 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -366,9 +366,11 @@ class OC_Filesystem{ case 'a': $hooks[]='write'; break; + default: + OC_Log::write('core','invalid mode ('.$mode.') for '.$path,OC_Log::ERROR); } - return self::basicOperation('fopen',$path,$hooks); + return self::basicOperation('fopen',$path,$hooks,$mode); } static public function toTmpFile($path){ if(OC_FileProxy::runPreProxies('toTmpFile',$path) and self::canRead($path) and $storage=self::getStorage($path)){ |