From ac3656d85de75c7a7dd313fcda08ff67f7ea02b0 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 11 Jan 2019 11:50:55 -0700 Subject: [PATCH] Avoid JS error if account selection is turned off --- calendar/inc/class.calendar_owner_etemplate_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php index f415629a78..16f2936c14 100644 --- a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php +++ b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php @@ -326,7 +326,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist } else { - $label = Link::title('api-accounts',$id); + $label = Link::title('api-accounts',$id) ?: Api\Accounts::username($id); } return $label; }