Commit 35d707c11aaf974682026bae14c43968348a5c12
1 parent
a66f8141
Exists in
master
and in
7 other branches
Correção na função de identificação de todos os temas ligados
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
classesphp/classe_atributos.php
| @@ -588,10 +588,17 @@ $resolucao - Resolucao de busca. | @@ -588,10 +588,17 @@ $resolucao - Resolucao de busca. | ||
| 588 | //pesquisa apenas os temas visiveis | 588 | //pesquisa apenas os temas visiveis |
| 589 | if ($opcao == "ligados") | 589 | if ($opcao == "ligados") |
| 590 | { | 590 | { |
| 591 | + $novalista = array(); | ||
| 591 | foreach ($listatemas as $tema) | 592 | foreach ($listatemas as $tema) |
| 592 | { | 593 | { |
| 593 | $l = $this->mapa->getlayerbyname($tema); | 594 | $l = $this->mapa->getlayerbyname($tema); |
| 594 | if($l->status == MS_DEFAULT) | 595 | if($l->status == MS_DEFAULT) |
| 596 | + $novalista[] = $tema; | ||
| 597 | + $listatemas = $novalista; | ||
| 598 | + } | ||
| 599 | + foreach ($listatemas as $tema) | ||
| 600 | + { | ||
| 601 | + $l = $this->mapa->getlayerbyname($tema); | ||
| 595 | $resultados[$tema] = $this->identificaQBP($tema,$xyarray[0],$xyarray[1],$this->arquivo,$resolucao); | 602 | $resultados[$tema] = $this->identificaQBP($tema,$xyarray[0],$xyarray[1],$this->arquivo,$resolucao); |
| 596 | } | 603 | } |
| 597 | //var_dump($resultados); | 604 | //var_dump($resultados); |