summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Wrapper/CacheJail.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-25 17:03:45 +0100
committerRobin Appelman <robin@icewind.nl>2017-01-25 17:03:45 +0100
commit2520a4831b2f2fefc52395355238091c9d6823b8 (patch)
tree5e1c7ebdf4f8b0fdd5c761b32a760ef5c5979ac8 /lib/private/Files/Cache/Wrapper/CacheJail.php
parentffe2543a573d7731bc2e89ad158a61d50906dfb0 (diff)
downloadnextcloud-server-2520a4831b2f2fefc52395355238091c9d6823b8.tar.gz
nextcloud-server-2520a4831b2f2fefc52395355238091c9d6823b8.zip
Make sure we use the correct storage id when scanning a jailed storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/Wrapper/CacheJail.php')
-rw-r--r--lib/private/Files/Cache/Wrapper/CacheJail.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php
index d8bdca6a3c4..894fbcc803d 100644
--- a/lib/private/Files/Cache/Wrapper/CacheJail.php
+++ b/lib/private/Files/Cache/Wrapper/CacheJail.php
@@ -142,11 +142,7 @@ class CacheJail extends CacheWrapper {
* @return int
*/
public function getParentId($file) {
- if ($file === '') {
- return -1;
- } else {
- return $this->getCache()->getParentId($this->getSourcePath($file));
- }
+ return $this->getCache()->getParentId($this->getSourcePath($file));
}
/**