mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix type error if tel_intl type extra var is null
This commit is contained in:
parent
73be901e63
commit
a8bc70b025
1 changed files with 2 additions and 2 deletions
|
|
@ -347,8 +347,8 @@ class ExtraItem
|
|||
case 'tel' :
|
||||
return $value ? implode('-', $value) : '';
|
||||
case 'tel_intl' :
|
||||
$country_number = $value[0];
|
||||
$array_slice = array_slice($value, 1);
|
||||
$country_number = $value[0] ?? '';
|
||||
$array_slice = $value ? array_slice($value, 1) : [];
|
||||
$phone_number = implode('-', $array_slice);
|
||||
return $value ? "+{$country_number}){$phone_number}": '';
|
||||
case 'country':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue