diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-10-20 11:40:31 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-10-20 11:40:31 +0200 |
commit | bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e (patch) | |
tree | 3fde2940c90151f1f80b3cc7b5f8ff90628e503d /Zotlabs/Module/Cdav.php | |
parent | 53931017b99c6fc77fc7632747e51b06a89b2287 (diff) | |
download | volse-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.php | 4 |
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); |