aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-26 17:56:04 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-26 17:56:04 +0200
commit9e95f189ed3d5b228b8133f04f66aca6de75b1ab (patch)
tree4e912a3ef58994e05e5b10f6f808bfe4c824366b /Zotlabs/Widget
parent221b31bcc6f16510c0f242e96ac696b2dd0eca58 (diff)
downloadvolse-hubzilla-9e95f189ed3d5b228b8133f04f66aca6de75b1ab.tar.gz
volse-hubzilla-9e95f189ed3d5b228b8133f04f66aca6de75b1ab.tar.bz2
volse-hubzilla-9e95f189ed3d5b228b8133f04f66aca6de75b1ab.zip
fix php warnings
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Cdav.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Cdav.php b/Zotlabs/Widget/Cdav.php
index 3a86f0d25..f5c3c3799 100644
--- a/Zotlabs/Widget/Cdav.php
+++ b/Zotlabs/Widget/Cdav.php
@@ -69,7 +69,6 @@ class Cdav {
$editable = (($sabrecal['share-access'] == 2) ? 'false' : 'true'); // false/true must be string since we're passing it to javascript
$sharees = [];
- $share_displayname = [];
foreach($invites as $invite) {
if(strpos($invite->href, 'mailto:') !== false) {
@@ -114,7 +113,7 @@ class Cdav {
if(!$access || $access === 'read-write') {
$writable_calendars[] = [
- 'displayname' => ((!$access) ? $sabrecal['{DAV:}displayname'] : $share_displayname[0]),
+ 'displayname' => $sabrecal['{DAV:}displayname'],
'id' => $sabrecal['id']
];
}