[ExtendedProfile] Fix XML type bug

This commit is contained in:
Diogo Cordeiro 2020-06-24 21:30:43 +01:00 committed by Diogo Peralta Cordeiro
parent 81d50c4ec3
commit 8c2d87b3b8

View File

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