From 30569ac81683d45967aebbf435f28523d1e15d31 Mon Sep 17 00:00:00 2001 From: Heather Killam Date: Mon, 6 Jun 2016 20:24:28 -0600 Subject: [PATCH] Update Address.php --- CRM/Contact/Form/Edit/Address.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Form/Edit/Address.php b/CRM/Contact/Form/Edit/Address.php index c2dd280f80..8184822aab 100644 --- a/CRM/Contact/Form/Edit/Address.php +++ b/CRM/Contact/Form/Edit/Address.php @@ -355,8 +355,9 @@ class CRM_Contact_Form_Edit_Address { $streetAddress .= ' '; } // CRM-17619 - if the street number suffix begins with a number, add a space - if ($fld === 'street_number_suffix' && !empty(CRM_Utils_Array::value($fld, $address))) { - if (ctype_digit(substr(CRM_Utils_Array::value($fld, $address), 0, 1))) { + $numsuffix = CRM_Utils_Array::value($fld, $address); + if ($fld === 'street_number_suffix' && !empty($numsuffix)) { + if (ctype_digit(substr($numsuffix, 0, 1))) { $streetAddress .= ' '; } } -- 2.25.1