Avoid JS error if account selection is turned off

This commit is contained in:
nathangray 2019-01-11 11:50:55 -07:00
parent 0d75e05369
commit ac3656d85d

View File

@ -326,7 +326,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
} }
else else
{ {
$label = Link::title('api-accounts',$id); $label = Link::title('api-accounts',$id) ?: Api\Accounts::username($id);
} }
return $label; return $label;
} }