X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=8281a97661321e797c7afaeafaad305d81f70c5a;hb=54905a3d81065915418af7f96953f957bf795300;hp=36d8f0cf71efbc1254f287e8466cb4da6a447bd5;hpb=0436782e70f496c96f30ee7822865f777ae1d73e;p=friendica.git diff --git a/mod/events.php b/mod/events.php index 36d8f0cf71..8281a97661 100644 --- a/mod/events.php +++ b/mod/events.php @@ -8,7 +8,7 @@ require_once('include/datetime.php'); require_once('include/event.php'); require_once('include/items.php'); -function events_init(&$a) { +function events_init(App &$a) { if (! local_user()) { return; } @@ -21,8 +21,9 @@ function events_init(&$a) { $cal_widget = widget_events(); - if (! x($a->page,'aside')) + if (! x($a->page,'aside')) { $a->page['aside'] = ''; + } $a->page['aside'] .= $cal_widget; } @@ -30,7 +31,7 @@ function events_init(&$a) { return; } -function events_post(&$a) { +function events_post(App &$a) { logger('post: ' . print_r($_REQUEST,true)); @@ -188,7 +189,7 @@ function events_post(&$a) { -function events_content(&$a) { +function events_content(App &$a) { if (! local_user()) { notice( t('Permission denied.') . EOL); @@ -353,7 +354,7 @@ function events_content(&$a) { } } - $events=array(); + $events = array(); // transform the event in a usable array if (dbm::is_result($r)) {