Skip to content

Commit 2bc2c87

Browse files
committed
Update Util.php
1 parent 36e8aa1 commit 2bc2c87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Util.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ public static function redirect($location = null) {
779779
}
780780

781781
public static function format_address($data) {
782+
if (is_string($data)) return $data;
783+
782784
$components = [];
783785
$components[] = self::get('street_1', $data) ? : self::get('street', $data);
784786
$components[] = self::get('street_2', $data);

0 commit comments

Comments
 (0)