diff options
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r-- | lib/filesystemview.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 0c530677f54..9f0a88f8ab0 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -329,7 +329,7 @@ class OC_FilesystemView { * @return mixed */ private function basicOperation($operation,$path,$hooks=array(),$extraParam=null){ - if(OC_FileProxy::runPreProxies($operation,$path, $extraParam) and OC_Filesystem::isValidPath($path) and $storage=$this->getStorage($path)){ + if(OC_FileProxy::runPreProxies($operation,$path, $extraParam) and OC_Filesystem::isValidPath($path)){ $interalPath=$this->getInternalPath($path); $run=true; if(OC_Filesystem::$loaded and $this->fakeRoot==OC_Filesystem::getRoot()){ @@ -341,7 +341,7 @@ class OC_FilesystemView { } } } - if($run){ + if($run and $storage=$this->getStorage($path)){ if(!is_null($extraParam)){ $result=$storage->$operation($interalPath,$extraParam); }else{ |