From fed34aecfa5b36c031ed754ed245549aa4a4194b Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 28 Sep 2012 21:30:06 +0200 Subject: [PATCH] Fix syntax error in removeETagHook --- lib/filesystem.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/filesystem.php b/lib/filesystem.php index 5516aae397..c6da826a33 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -527,13 +527,13 @@ class OC_Filesystem{ } else { $path=$params['oldpath']; } - - if (root) { // reduce path to the required part of it (no 'username/files') - $fakeRootView = new OC_FilesystemView($root); - $count = 1; + + if ($root) { // reduce path to the required part of it (no 'username/files') + $fakeRootView = new OC_FilesystemView($root); + $count = 1; $path=str_replace(OC_App::getStorage("files")->getAbsolutePath(), "", $fakeRootView->getAbsolutePath($path), $count); } - + $path = self::normalizePath($path); OC_Connector_Sabre_Node::removeETagPropertyForPath($path); }