dever %!s(int64=3) %!d(string=hai) anos
pai
achega
6be84f8a66
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/Api.php

+ 3 - 0
src/Api.php

@@ -137,6 +137,9 @@ class Api
                 } elseif ($k == 4) {
                     $result[$k] = $this->getName('village', $v, false, 'id', $name);
                 }
+                if (!$result[$k]) {
+                    unset($result[$k]);
+                }
             }
             return implode($im, $result);
         }