summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-11-10 14:34:38 +0100
committerRobin Appelman <icewind@owncloud.com>2015-11-19 13:30:50 +0100
commitd5061b8139b4513c30aee782be94da7d69582710 (patch)
tree50c0d82d5ab587a685c0eb9b5a45469d47031c99 /lib/private
parent1736c70075c97aa4a10caf3c1a5790a11cce8675 (diff)
downloadnextcloud-server-d5061b8139b4513c30aee782be94da7d69582710.tar.gz
nextcloud-server-d5061b8139b4513c30aee782be94da7d69582710.zip
fix fileinfo for non existing files
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/view.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 25bf7b547ca..70e8db83381 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1241,6 +1241,10 @@ class View {
if ($storage) {
$data = $this->getCacheEntry($storage, $internalPath, $relativePath);
+ if(!is_array($data)) {
+ return false;
+ }
+
if ($mount instanceof MoveableMount && $internalPath === '') {
$data['permissions'] |= \OCP\Constants::PERMISSION_DELETE;
}