aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2017-11-25 14:33:57 +0100
committerMario <mario@mariovavti.com>2017-11-25 14:33:57 +0100
commit014b629928b19dec4bfa2f12f961fd4048d71d19 (patch)
tree9fdd5f48efd0a756aa9a625af21b25363dddfad3 /Zotlabs/Widget
parent4b2bd871b765e0287f329ad398a15f20cb6a6425 (diff)
downloadvolse-hubzilla-014b629928b19dec4bfa2f12f961fd4048d71d19.tar.gz
volse-hubzilla-014b629928b19dec4bfa2f12f961fd4048d71d19.tar.bz2
volse-hubzilla-014b629928b19dec4bfa2f12f961fd4048d71d19.zip
fix regression in cdav calendar widget
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Cdav.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Cdav.php b/Zotlabs/Widget/Cdav.php
index 60a860f93..589f915c5 100644
--- a/Zotlabs/Widget/Cdav.php
+++ b/Zotlabs/Widget/Cdav.php
@@ -63,9 +63,10 @@ class Cdav {
$sharees = [];
$share_displayname = [];
+
foreach($invites as $invite) {
if(strpos($invite->href, 'mailto:') !== false) {
- $sharee = channelx_by_hash(substr($invite->href, 7));
+ $sharee = channelx_by_nick(substr($invite->principal, 11));
$sharees[] = [
'name' => $sharee['channel_name'],
'access' => (($invite->access == 3) ? ' (RW)' : ' (R)'),
@@ -173,4 +174,4 @@ class Cdav {
}
}
-} \ No newline at end of file
+}