summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-26 19:57:28 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-26 19:57:28 +0200
commitbf49edde6bbd32fe847b8d56e8fb99c2587d5b3f (patch)
tree3fa967f7e9c9dd8b1671e5ca855c1d4181537dc8 /lib/public
parent6fcee1ee117a167aa0c526ca39effbf086d10991 (diff)
downloadnextcloud-server-bf49edde6bbd32fe847b8d56e8fb99c2587d5b3f.tar.gz
nextcloud-server-bf49edde6bbd32fe847b8d56e8fb99c2587d5b3f.zip
check item id is set
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 122ab3fa030..d1000e7bb9f 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -978,7 +978,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;