forked from GNUsocial/gnu-social
Extended profile - don't show rel for empty phone number
This commit is contained in:
parent
f4ff375dbd
commit
59515d5976
@ -160,9 +160,11 @@ class ExtendedProfileWidget extends Form
|
|||||||
protected function showPhone($name, $field)
|
protected function showPhone($name, $field)
|
||||||
{
|
{
|
||||||
$this->out->elementStart('div', array('class' => 'phone-display'));
|
$this->out->elementStart('div', array('class' => 'phone-display'));
|
||||||
$this->out->text($field['value']);
|
if (!empty($field['value'])) {
|
||||||
if (!empty($field['rel'])) {
|
$this->out->text($field['value']);
|
||||||
$this->out->text(' (' . $field['rel'] . ')');
|
if (!empty($field['rel'])) {
|
||||||
|
$this->out->text(' (' . $field['rel'] . ')');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user