mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +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' :
|
case 'tel' :
|
||||||
return $value ? implode('-', $value) : '';
|
return $value ? implode('-', $value) : '';
|
||||||
case 'tel_intl' :
|
case 'tel_intl' :
|
||||||
$country_number = $value[0];
|
$country_number = $value[0] ?? '';
|
||||||
$array_slice = array_slice($value, 1);
|
$array_slice = $value ? array_slice($value, 1) : [];
|
||||||
$phone_number = implode('-', $array_slice);
|
$phone_number = implode('-', $array_slice);
|
||||||
return $value ? "+{$country_number}){$phone_number}": '';
|
return $value ? "+{$country_number}){$phone_number}": '';
|
||||||
case 'country':
|
case 'country':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue