Signed-off-by: Robin Appelman <robin@icewind.nl>
private $cachedGroups = array();
/**
- * @var \OC\Group\Group[]
+ * @var \OC\Group\Group[][]
*/
private $cachedUserGroups = array();
$qb->andWhere($qb->expr()->eq('file_source', $qb->createNamedParameter($node->getId())));
}
+
+ $groups = array_filter($groups, function($group) { return $group instanceof IGroup; });
$groups = array_map(function(IGroup $group) { return $group->getGID(); }, $groups);
$qb->andWhere($qb->expr()->eq('share_type', $qb->createNamedParameter(\OCP\Share::SHARE_TYPE_GROUP)))