From bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 20 Oct 2022 11:40:31 +0200 Subject: fix more php warnings --- Zotlabs/Widget/Cdav.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Widget') diff --git a/Zotlabs/Widget/Cdav.php b/Zotlabs/Widget/Cdav.php index f84f5cb04..3a86f0d25 100644 --- a/Zotlabs/Widget/Cdav.php +++ b/Zotlabs/Widget/Cdav.php @@ -38,7 +38,7 @@ class Cdav { intval($channel['channel_id']) ); - $sharee_options .= '' . "\r\n"; + $sharee_options = '' . "\r\n"; foreach($local_channels as $local_channel) { $sharee_options .= '' . "\r\n"; } @@ -46,6 +46,9 @@ class Cdav { $access_options = '' . "\r\n"; $access_options .= '' . "\r\n"; + $shared_calendars = []; + $my_calendars = []; + //list calendars foreach($sabrecals as $sabrecal) { if($sabrecal['share-access'] == 1) -- cgit v1.2.3