Skip to content
Snippets Groups Projects
Commit 799d8ca3 authored by Björn Schießle's avatar Björn Schießle
Browse files

check if we have a fileinfo

parent bee48f85
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment