diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-09-21 21:29:37 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-09-21 21:29:37 +0200 |
commit | 4f4498e0d66adc1c74a6923e443da06b5e58e5df (patch) | |
tree | 9a11642c5b6b7accf754185299ec950ff99da154 /lib/filesystem.php | |
parent | 8820cd934a5cc4311e6c90b01c36d4c190340d35 (diff) | |
download | nextcloud-server-4f4498e0d66adc1c74a6923e443da06b5e58e5df.tar.gz nextcloud-server-4f4498e0d66adc1c74a6923e443da06b5e58e5df.zip |
Fix undefined user var, use getUser
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index ce4d3a0cf48..f5c10923b32 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)); |