[ExtendedProfile] Fix XML type bug

This commit is contained in:
Diogo Cordeiro 2020-06-24 21:30:43 +01:00
parent 324b7f38a9
commit 23ed816035

View File

@ -179,7 +179,7 @@ class ExtendedProfileWidget extends Form
protected function showIm($name, $field) protected function showIm($name, $field)
{ {
$this->out->elementStart('div', array('class' => 'im-display')); $this->out->elementStart('div', array('class' => 'im-display'));
$this->out->text($field['value']); $this->out->text($field['value'] ?? '');
if (!empty($field['rel'])) { if (!empty($field['rel'])) {
// TRANS: Value between parentheses (phone number, website, or IM address). // TRANS: Value between parentheses (phone number, website, or IM address).
$outtext = sprintf(_m('(%s)'), $field['rel']); $outtext = sprintf(_m('(%s)'), $field['rel']);