]> git.mxchange.org Git - friendica.git/commitdiff
Remove deprecated defaults() call in mod/events
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 6 Sep 2019 12:33:41 +0000 (08:33 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 6 Sep 2019 12:33:41 +0000 (08:33 -0400)
mod/events.php

index 86cec9a7d4130edfdafb31a6bd66f10e594bf6b0..82257a84814f653bf8bc3b7c8a2e678c16a0f531 100644 (file)
@@ -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,