diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-08-24 17:22:43 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-08-24 17:23:01 +0200 |
commit | ee04b626b4c6c3a74bd0011be921660b5b8e6a66 (patch) | |
tree | 11258122228a62d65da4d3922f42efbefa9576b9 /apps | |
parent | 36487246eddc87342d113de8f133f8fb910c70ad (diff) | |
download | nextcloud-server-ee04b626b4c6c3a74bd0011be921660b5b8e6a66.tar.gz nextcloud-server-ee04b626b4c6c3a74bd0011be921660b5b8e6a66.zip |
Correct variable name.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/lib/sabre/object.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/lib/sabre/object.php b/apps/calendar/lib/sabre/object.php index 25954e6ee55..0d1bfa397c8 100644 --- a/apps/calendar/lib/sabre/object.php +++ b/apps/calendar/lib/sabre/object.php @@ -45,11 +45,11 @@ class OC_Connector_Sabre_CalDAV_CalendarObject extends Sabre_CalDAV_CalendarObje $uid = OC_Calendar_Calendar::extractUserID($this->getOwner()); if($uid != OCP\USER::getUser()) { - $sharedAddressbook = OCP\Share::getItemSharedWithBySource('calendar', $this->$calendarInfo['id']); - if ($sharedAddressbook && ($sharedAddressbook['permissions'] & OCP\Share::PERMISSION_READ)) { + $sharedCalendar = OCP\Share::getItemSharedWithBySource('calendar', $this->$calendarInfo['id']); + if ($sharedCalendar && ($sharedCalendar['permissions'] & OCP\Share::PERMISSION_READ)) { $readprincipal = 'principals/' . OCP\USER::getUser(); } - if ($sharedAddressbook && ($sharedAddressbook['permissions'] & OCP\Share::PERMISSION_UPDATE)) { + if ($sharedCalendar && ($sharedCalendar['permissions'] & OCP\Share::PERMISSION_UPDATE)) { $writeprincipal = 'principals/' . OCP\USER::getUser(); } } |