From 35d707c11aaf974682026bae14c43968348a5c12 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 12 Dec 2007 03:35:25 +0000 Subject: [PATCH] Correção na função de identificação de todos os temas ligados --- classesphp/classe_atributos.php | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 56ecf0d..5704a95 100644 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -588,10 +588,17 @@ $resolucao - Resolucao de busca. //pesquisa apenas os temas visiveis if ($opcao == "ligados") { + $novalista = array(); foreach ($listatemas as $tema) { $l = $this->mapa->getlayerbyname($tema); if($l->status == MS_DEFAULT) + $novalista[] = $tema; + $listatemas = $novalista; + } + foreach ($listatemas as $tema) + { + $l = $this->mapa->getlayerbyname($tema); $resultados[$tema] = $this->identificaQBP($tema,$xyarray[0],$xyarray[1],$this->arquivo,$resolucao); } //var_dump($resultados); -- libgit2 0.21.2