From 4f4498e0d66adc1c74a6923e443da06b5e58e5df Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 21 Sep 2012 21:29:37 +0200 Subject: [PATCH] Fix undefined user var, use getUser --- lib/filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesystem.php b/lib/filesystem.php index ce4d3a0cf4..f5c10923b3 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -357,7 +357,7 @@ class OC_Filesystem{ * @return string */ static public function getLocalPath($path) { - $datadir = OC_User::getHome($user).'/files'; + $datadir = OC_User::getHome(OC_User::getUser()).'/files'; $newpath = $path; if (strncmp($newpath, $datadir, strlen($datadir)) == 0) { $newpath = substr($path, strlen($datadir));