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-07-04 17:08:33 +0200
commit9d33ed376d4d52eed5402b6b5ec61811b7a9e3e3 (patch)
treef8885ed49dc4237e4b8ce585be87d14af8689b6b /lib/public
parent07377ed4315eb02461931def50e8dea842b7baaa (diff)
downloadnextcloud-server-9d33ed376d4d52eed5402b6b5ec61811b7a9e3e3.tar.gz
nextcloud-server-9d33ed376d4d52eed5402b6b5ec61811b7a9e3e3.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 765f1c64691..41b41144910 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -979,7 +979,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;