Commit 9e5401e008ec44028151d6309ab4a90c633293f7

Authored by Edmar Moretti
1 parent 195d841d

correção na função de busca por atributos

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
classesphp/classe_atributos.php
@@ -387,9 +387,11 @@ $onde - Tipo de abrangência espacial (brasil ou mapa) @@ -387,9 +387,11 @@ $onde - Tipo de abrangência espacial (brasil ou mapa)
387 $palavra = trim($palavra); 387 $palavra = trim($palavra);
388 foreach ($temas as $tema) 388 foreach ($temas as $tema)
389 { 389 {
  390 +
390 $registros = array(); 391 $registros = array();
391 $items = $temasi[$tema]; 392 $items = $temasi[$tema];
392 $l = $this->mapa->getlayerbyname($tema); 393 $l = $this->mapa->getlayerbyname($tema);
  394 + $this->layer = $l;
393 if ($l->data == "") 395 if ($l->data == "")
394 {return "Erro. O tema não tem tabela";} 396 {return "Erro. O tema não tem tabela";}
395 $filtro = $l->getfilter(); 397 $filtro = $l->getfilter();