We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c6b69 commit 44ac458Copy full SHA for 44ac458
src/Seta0909/LaravelTwStreetname/LaravelTwStreetname.php
@@ -106,7 +106,7 @@ private static function getInstance()
106
private static function getCityId($name)
107
{
108
foreach (self::$citys as $key => $val) {
109
- if ($val['name'] == $name) {
+ if (isset($val['name']) && $val['name'] == $name) {
110
return $val['uid'];
111
}
112
@@ -116,7 +116,7 @@ private static function getCountryId($name)
116
117
foreach (self::$countrys as $country) {
118
foreach ($country as $key => $val) {
119
120
121
122
0 commit comments