aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Cdav.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-20 11:40:31 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-20 11:40:31 +0200
commitbb5b33a0d3963aabed2e7b55c67bb7b81492cf9e (patch)
tree3fde2940c90151f1f80b3cc7b5f8ff90628e503d /Zotlabs/Module/Cdav.php
parent53931017b99c6fc77fc7632747e51b06a89b2287 (diff)
downloadvolse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.tar.gz
volse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.tar.bz2
volse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.zip
fix more php warnings
Diffstat (limited to 'Zotlabs/Module/Cdav.php')
-rw-r--r--Zotlabs/Module/Cdav.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Cdav.php b/Zotlabs/Module/Cdav.php
index 599552545..6c168b2c9 100644
--- a/Zotlabs/Module/Cdav.php
+++ b/Zotlabs/Module/Cdav.php
@@ -914,6 +914,7 @@ class Cdav extends Controller {
head_add_js('/library/fullcalendar/packages/timegrid/main.min.js');
head_add_js('/library/fullcalendar/packages/list/main.min.js');
+ $o = '';
$sources = '';
$resource_id = '';
$resource = null;
@@ -921,6 +922,8 @@ class Cdav extends Controller {
if(argc() == 3)
$resource_id = argv(2);
+ $categories = '';
+
if($resource_id) {
$r = q("SELECT event.*, item.author_xchan, item.owner_xchan, item.plink, item.id as item_id FROM event LEFT JOIN item ON event.event_hash = item.resource_id
WHERE event.uid = %d AND event.event_hash = '%s' LIMIT 1",
@@ -944,7 +947,6 @@ class Cdav extends Controller {
$resource = $r[0];
$catsenabled = feature_enabled(local_channel(),'categories');
- $categories = '';
if($catsenabled){
if($r[0]['term']) {
$cats = get_terms_oftype($r[0]['term'], TERM_CATEGORY);