mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove hyphens when 'tel' extra var is empty
cf. https://xetown.com/topics/1356877
This commit is contained in:
parent
21bcd888c9
commit
08d1ab98d0
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ class ExtraItem
|
|||
return ($value) ? sprintf('<a href="mailto:%s">%s</a>', $value, $value) : "";
|
||||
|
||||
case 'tel' :
|
||||
return sprintf('%s-%s-%s', $value[0], $value[1], $value[2]);
|
||||
return $value ? implode('-', $value) : '';
|
||||
|
||||
case 'textarea' :
|
||||
return nl2br($value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue