diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index e5152eb..4232113 100755 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -2275,6 +2275,7 @@ class Atributos $tips = explode(",",$tips); //o retorno deve ser do tipo TIP if($etip == true || $todosItens = true){ + $itensMetadata = $itens; $temp = array_combine($itens,$itensdesc); $templ = array_combine($itens,$lks); $tempimg = array_combine($itens,$itemimg); @@ -2284,32 +2285,33 @@ class Atributos $lks = array(); $itemimg = array(); $locimg = array(); - foreach($itensLayer as $t){ - $itens[] = $t; - if($temp[$t] != ""){ - $itensdesc[] = $temp[$t]; - } - else{ - $itensdesc[] = $t; - } - if($templ[$t] != ""){ - $lks[] = $templ[$t]; - } - else{ - $lks[] = ""; - } - if($tempimg[$t] != ""){ - $itemimg[] = $tempimg[$t]; - } - else{ - $itemimg[] = ""; - } - if($temploc[$t] != ""){ - $locimg[] = $temploc[$t]; - } - else{ - $locimg[] = ""; + if(in_array($t,$itensMetadata)){ + $itens[] = $t; + if($temp[$t] != ""){ + $itensdesc[] = $temp[$t]; + } + else{ + $itensdesc[] = $t; + } + if($templ[$t] != ""){ + $lks[] = $templ[$t]; + } + else{ + $lks[] = ""; + } + if($tempimg[$t] != ""){ + $itemimg[] = $tempimg[$t]; + } + else{ + $itemimg[] = ""; + } + if($temploc[$t] != ""){ + $locimg[] = $temploc[$t]; + } + else{ + $locimg[] = ""; + } } } } diff --git a/css/i3geo7.css.php b/css/i3geo7.css.php old mode 100644 new mode 100755 index 7321a98..7321a98 --- a/css/i3geo7.css.php +++ b/css/i3geo7.css.php diff --git a/js/i3geo_tudo_compacto7.js.php b/js/i3geo_tudo_compacto7.js.php old mode 100644 new mode 100755 index 1f2e15b..1f2e15b --- a/js/i3geo_tudo_compacto7.js.php +++ b/js/i3geo_tudo_compacto7.js.php -- libgit2 0.21.2