From c5c3cf19b689f5a7f16445c671a0b0d9f7e304a5 Mon Sep 17 00:00:00 2001 From: Romain Louis Date: Mon, 21 Apr 2008 05:19:55 +0000 Subject: [PATCH] Save method bugs fixing git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53113 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/PhoneNumberField.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forms/PhoneNumberField.php b/forms/PhoneNumberField.php index be945a835..d8680f7a4 100644 --- a/forms/PhoneNumberField.php +++ b/forms/PhoneNumberField.php @@ -60,15 +60,15 @@ class PhoneNumberField extends FormField { if( is_array( $value ) ) { $completeNumber = ''; - if( $value['Country'] ) + if( isset($value['Country']) ) $completeNumber .= '+' . $value['Country']; - if( $value['Area'] ) + if( isset($value['Area']) ) $completeNumber .= '(' . $value['Area'] . ')'; $completeNumber .= $value['Number']; - if( $value['Extension'] ) + if( isset($value['Extension']) ) $completeNumber .= '#' . $value['Extension']; return $completeNumber;