summaryrefslogtreecommitdiffstats
path: root/lib/private/cache/file.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-02-03 10:13:25 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-02-03 10:13:25 +0100
commit86935fab17a823071c4593f1b27aeb2d4df4e99c (patch)
treeda8fe54aedd3ab3e7fa8a0d541a8090c8e4f00b1 /lib/private/cache/file.php
parentded8cc47cfb1173c10a47f7ab0f65fbb4ab74741 (diff)
downloadnextcloud-server-86935fab17a823071c4593f1b27aeb2d4df4e99c.tar.gz
nextcloud-server-86935fab17a823071c4593f1b27aeb2d4df4e99c.zip
readd is_file
Diffstat (limited to 'lib/private/cache/file.php')
-rw-r--r--lib/private/cache/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/cache/file.php b/lib/private/cache/file.php
index b6e426989b8..3b500c4e45b 100644
--- a/lib/private/cache/file.php
+++ b/lib/private/cache/file.php
@@ -83,7 +83,7 @@ class File {
public function hasKey($key) {
$storage = $this->getStorage();
- if ($storage && $storage->isReadable($key)) {
+ if ($storage && $storage->is_file($key) && $storage->isReadable($key)) {
return true;
}
return false;