Skip to content

Commit 6800ae5

Browse files
committed
Fix
1 parent 7533547 commit 6800ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function _generatorAddressCode($address)
7878
$addressCode = array_search($address, $this->_addressCodeList);
7979
}
8080

81-
if (substr($addressCode, 0, 1) == 8) {
81+
if ($addressCode && substr($addressCode, 0, 1) == 8) {
8282
// 台湾省、香港特别行政区和澳门特别行政区(8字开头)暂缺地市和区县信息
8383
return $addressCode;
8484
}

0 commit comments

Comments
 (0)