diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-10-21 17:02:11 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-21 20:48:47 +0100 |
commit | 3d67cd51c2f42029435343004b3ebe608bcba375 (patch) | |
tree | d1b6a031f577da075be25857c9b520e4078e62ea /lib/fileproxy.php | |
parent | abc749feeb14c49d483135f879195b70ee89654f (diff) | |
download | nextcloud-server-3d67cd51c2f42029435343004b3ebe608bcba375.tar.gz nextcloud-server-3d67cd51c2f42029435343004b3ebe608bcba375.zip |
encryption proxy wip
Diffstat (limited to 'lib/fileproxy.php')
-rw-r--r-- | lib/fileproxy.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/fileproxy.php b/lib/fileproxy.php index 1fb22bd1139..796fd95cb38 100644 --- a/lib/fileproxy.php +++ b/lib/fileproxy.php @@ -83,16 +83,16 @@ class OC_FileProxy{ return $proxies; } - public static function runPreProxies($operation,$filepath,$filepath2=null){ + public static function runPreProxies($operation,&$filepath,&$filepath2=null){ $proxies=self::getProxies($operation,false); $operation='pre'.$operation; foreach($proxies as $proxy){ - if($filepath2){ - if(!$proxy->$operation(&$filepath,&$filepath2)){ + if(!is_null($filepath2)){ + if($proxy->$operation($filepath,$filepath2)===false){ return false; } }else{ - if(!$proxy->$operation(&$filepath)){ + if($proxy->$operation($filepath)===false){ return false; } } |