diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-07 11:47:52 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-07 11:47:52 +0200 |
commit | 799d8ca381b95e3f6cc47aa5f42d73c3a4fbda92 (patch) | |
tree | eea1b49e4f497387ce93d7a861aa38417a846985 /apps/files_sharing/lib | |
parent | bee48f851ee76cab2367f3f7add641a3a75845eb (diff) | |
download | nextcloud-server-799d8ca381b95e3f6cc47aa5f42d73c3a4fbda92.tar.gz nextcloud-server-799d8ca381b95e3f6cc47aa5f42d73c3a4fbda92.zip |
check if we have a fileinfo
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/helper.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/helper.php b/apps/files_sharing/lib/helper.php index cc1f7d9ffdf..c7347539fcc 100644 --- a/apps/files_sharing/lib/helper.php +++ b/apps/files_sharing/lib/helper.php @@ -127,7 +127,11 @@ class Helper { $ids = array(); while ($path !== '' && $path !== '.' && $path !== '/') { $info = $ownerView->getFileInfo($path); - $ids[] = $info['fileid']; + if ($info instanceof \OC\Files\FileInfo) { + $ids[] = $info['fileid']; + } else { + \OCP\Util::writeLog('sharing', 'No fileinfo available for: ' . $path, \OCP\Util::WARN); + } $path = dirname($path); } |