From: Hypolite Petovan Date: Fri, 6 Sep 2019 12:33:41 +0000 (-0400) Subject: Remove deprecated defaults() call in mod/events X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2c3bb207414defb35e38fccc180a1d730e9d5cf;p=friendica.git Remove deprecated defaults() call in mod/events --- diff --git a/mod/events.php b/mod/events.php index 86cec9a7d4..82257a8481 100644 --- a/mod/events.php +++ b/mod/events.php @@ -321,7 +321,7 @@ function events_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,