dever 3 years ago
parent
commit
4650c7c49b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Api.php

+ 2 - 0
src/Api.php

@@ -136,6 +136,8 @@ class Api
                     $result[$k] = $this->getName('town', $v, false, 'id', $name);
                 } elseif ($k == 4) {
                     $result[$k] = $this->getName('village', $v, false, 'id', $name);
+                } else {
+                    $result[$k] = '';
                 }
                 if (!$result[$k]) {
                     unset($result[$k]);