Replace deprecated defaults() calls by a combination of ?? and ?: operators in mod/
This commit is contained in:
parent
8998926e5b
commit
2db6171641
32 changed files with 186 additions and 189 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue