X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcal.php;h=51d17a10a43b98cb850d25bb39d7197b0f5969d1;hb=2db6171641bd3cd468b965470d9da56e82512e00;hp=eba8d975865b2728a114b8981be0035375d8216b;hpb=8998926e5b03f7bfbd280aa50f0f5ea276aec8b3;p=friendica.git diff --git a/mod/cal.php b/mod/cal.php index eba8d97586..51d17a10a4 100644 --- a/mod/cal.php +++ b/mod/cal.php @@ -200,7 +200,7 @@ function cal_content(App $a) // put the event parametes in an array so we can better transmit them $event_params = [ - 'event_id' => intval(defaults($_GET, 'id', 0)), + 'event_id' => intval($_GET['id'] ?? 0), 'start' => $start, 'finish' => $finish, 'adjust_start' => $adjust_start,