diff --git a/mod/events.php b/mod/events.php index 86cec9a7d..82257a848 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, diff --git a/src/Model/Contact.php b/src/Model/Contact.php index ffdee6aa0..0a202cef4 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2668,7 +2668,7 @@ class Contact extends BaseObject // Prevents endless loop in case only a non-public contact exists for the contact URL unset($data['uid']); - return self::magicLinkByContact($data, $contact_url); + return self::magicLinkByContact($data, $url ?: $contact_url); } /** diff --git a/view/theme/frio/templates/event.tpl b/view/theme/frio/templates/event.tpl index 39695819a..9a6f747e5 100644 --- a/view/theme/frio/templates/event.tpl +++ b/view/theme/frio/templates/event.tpl @@ -18,7 +18,7 @@ {{if $event.edit}}{{/if}} {{if $event.copy}}{{/if}} {{if $event.drop}}{{/if}} - {{if $event.item.plink}}{{/if}} + {{if $event.item.plink}}{{/if}}