aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-08 20:47:40 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-08 20:47:40 +0100
commit5a173b901f90dba3465847cde4477be9994a1341 (patch)
tree51578ca3aeddefe4f2ac383ea5994c779a8504b2
parent15b8a3f98757f220db190c1e9489d5888b2b1015 (diff)
downloadnextcloud-server-5a173b901f90dba3465847cde4477be9994a1341.tar.gz
nextcloud-server-5a173b901f90dba3465847cde4477be9994a1341.zip
fix Scanner->scan setting the filesize to 0 for files
-rw-r--r--lib/files/cache/scanner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index 0adde1d354d..eb947a2d53e 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -101,9 +101,9 @@ class Scanner {
}
}
}
- }
- if ($size !== -1) {
- $this->cache->put($path, array('size' => $size));
+ if ($size !== -1) {
+ $this->cache->put($path, array('size' => $size));
+ }
}
return $size;
}