From 38bb503ff6fd07fe5c65e5f06add98663d9cdf3e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 22 Oct 2011 14:10:15 +0200 Subject: fix fopen --- lib/filesystem.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/filesystem.php') 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)){ -- cgit v1.2.3