Skip to content

Commit 1c93e3f

Browse files
committed
fixed format_address
1 parent 47f623a commit 1c93e3f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Util.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -812,12 +812,12 @@ public static function redirect($location = null) {
812812
}
813813

814814
public static function format_address($data) {
815-
$addr = trim(br2nl(get('street_1', $data)));
816-
$addr1 = trim(br2nl(get('street_2', $data)));
817-
$city = trim(get('city', $data));
818-
$state = trim(get('state', $data));
819-
$zip = trim(get('zip', $data));
820-
$county = trim(get('county', $data));
815+
$addr = trim(self::br2nl(self::get('street_1', $data)));
816+
$addr1 = trim(self::br2nl(self::get('street_2', $data)));
817+
$city = trim(self::get('city', $data));
818+
$state = trim(self::get('state', $data));
819+
$zip = trim(self::get('zip', $data));
820+
$county = trim(self::get('county', $data));
821821

822822
if (!$addr) return '';
823823
return $addr.($addr1 != '' ? ', '.$addr1 : '').', '.$city.', '.($county ? $county.', ' : '').$state.' '.$zip;

0 commit comments

Comments
 (0)