summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/migrate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/migrate.php b/lib/private/migrate.php
index 5354e9d338d..2d2d37795fd 100644
--- a/lib/private/migrate.php
+++ b/lib/private/migrate.php
@@ -257,7 +257,7 @@ class OC_Migrate{
$userfolder = $extractpath . $json->exporteduser;
$newuserfolder = $datadir . '/' . self::$uid;
foreach(scandir($userfolder) as $file){
- if($file !== '.' && $file !== '..' && is_dir($file)) {
+ if($file !== '.' && $file !== '..' && is_dir($userfolder.'/'.$file)) {
$file = str_replace(array('/', '\\'), '', $file);
// Then copy the folder over