aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-15 19:37:47 +0000
committerMario <mario@mariovavti.com>2021-01-15 19:37:47 +0000
commitae4b5231bb5cdbc10d967de59606307a6727dce7 (patch)
tree3a45110c7402fca27de54b056b4ae99597dee357 /Zotlabs
parent28ef42a424db57bdb6e276f118d38fddd170ca54 (diff)
downloadvolse-hubzilla-ae4b5231bb5cdbc10d967de59606307a6727dce7.tar.gz
volse-hubzilla-ae4b5231bb5cdbc10d967de59606307a6727dce7.tar.bz2
volse-hubzilla-ae4b5231bb5cdbc10d967de59606307a6727dce7.zip
fix undefined vars in mod cal
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Cal.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/Zotlabs/Module/Cal.php b/Zotlabs/Module/Cal.php
index 07bee38bd..65dba927b 100644
--- a/Zotlabs/Module/Cal.php
+++ b/Zotlabs/Module/Cal.php
@@ -37,8 +37,6 @@ class Cal extends Controller {
$observer = App::get_observer();
App::$data['observer'] = $observer;
- $observer_xchan = (($observer) ? $observer['xchan_hash'] : '');
-
head_set_icon(App::$data['channel']['xchan_photo_s']);
App::$page['htmlhead'] .= "<script> var profile_uid = " . ((App::$data['channel']) ? App::$data['channel']['channel_id'] : 0) . "; </script>" ;
@@ -159,10 +157,10 @@ class Cal extends Controller {
'timezone' => $tz,
'start'=> $start,
'end' => $end,
- 'drop' => $drop,
+ 'drop' => false,
'allDay' => (($rr['adjust']) ? 0 : 1),
'title' => html_entity_decode($rr['summary'], ENT_COMPAT, 'UTF-8'),
- 'editable' => $edit ? true : false,
+ 'editable' => false,
'item' => $rr,
'plink' => [$rr['plink'], t('Link to source')],
'description' => html_entity_decode($rr['description'], ENT_COMPAT, 'UTF-8'),
@@ -205,9 +203,9 @@ class Cal extends Controller {
'$prev' => t('Previous'),
'$next' => t('Next'),
'$today' => t('Today'),
- '$title' => $title,
- '$dtstart' => $dtstart,
- '$dtend' => $dtend,
+ '$title' => '',
+ '$dtstart' => '',
+ '$dtend' => '',
'$nick' => $nick
]);