mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
isset check replaced by non empty
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53146 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
eb018ad36a
commit
0a124ec302
@ -60,15 +60,15 @@ class PhoneNumberField extends FormField {
|
||||
if( is_array( $value ) ) {
|
||||
$completeNumber = '';
|
||||
|
||||
if( isset($value['Country']) )
|
||||
if( ! empty($value['Country']) )
|
||||
$completeNumber .= '+' . $value['Country'];
|
||||
|
||||
if( isset($value['Area']) )
|
||||
if( ! empty($value['Area']) )
|
||||
$completeNumber .= '(' . $value['Area'] . ')';
|
||||
|
||||
$completeNumber .= $value['Number'];
|
||||
|
||||
if( isset($value['Extension']) )
|
||||
if( ! empty($value['Extension']) )
|
||||
$completeNumber .= '#' . $value['Extension'];
|
||||
|
||||
return $completeNumber;
|
||||
|
Loading…
Reference in New Issue
Block a user