dever %!s(int64=3) %!d(string=hai) anos
pai
achega
4650c7c49b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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]);