diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-26 19:57:28 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-06-27 17:39:44 +0200 |
commit | 77dc3964f8c89826e7706ea8cc88da5efdaf8212 (patch) | |
tree | 9e35f635c6e20b2ebb1760ae4c971f7df2c97618 /lib | |
parent | 3b31afb2a712ad06e96e0e2e5f872ec3e435810d (diff) | |
download | nextcloud-server-77dc3964f8c89826e7706ea8cc88da5efdaf8212.tar.gz nextcloud-server-77dc3964f8c89826e7706ea8cc88da5efdaf8212.zip |
check item id is set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 304cb7239eb..5abf5dee264 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -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; |