mirror of
https://github.com/nextcloud/server.git
synced 2024-08-06 15:06:39 +02:00
check item id is set
This commit is contained in:
parent
3b31afb2a7
commit
77dc3964f8
@ -984,7 +984,7 @@ class Share {
|
||||
// Check if the same owner shared with the user twice
|
||||
// through a group and user share - this is allowed
|
||||
$id = $targets[$row[$column]];
|
||||
if ($items[$id]['uid_owner'] == $row['uid_owner']) {
|
||||
if (isset($items[$id]) && $items[$id]['uid_owner'] == $row['uid_owner']) {
|
||||
// Switch to group share type to ensure resharing conditions aren't bypassed
|
||||
if ($items[$id]['share_type'] != self::SHARE_TYPE_GROUP) {
|
||||
$items[$id]['share_type'] = self::SHARE_TYPE_GROUP;
|
||||
|
Loading…
Reference in New Issue
Block a user