Commit 39c4ba3b671a0c55c6a3688874333244d5412b0f

Authored by Edmar Moretti
1 parent b679a02d

--no commit message

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
admin/php/xml.php
... ... @@ -100,7 +100,8 @@ function geraRSStemasDownload($locaplic)
100 100 and n2.id_subgrupo = sg.id_subgrupo
101 101 and n2.id_n1 = n1.id_n1
102 102 and n1.id_grupo = g.id_grupo
103   - and (t.download_tema = 'sim' or t.download_tema = 'SIM')
  103 + and (t.download_tema != 'nao' and t.download_tema != 'NAO')
  104 + and t.tipoa_tema != 'WMS'
104 105 and n3.n3_perfil = ''
105 106 and n2.n2_perfil = ''
106 107 and n1.n1_perfil = ''
... ... @@ -121,7 +122,7 @@ function geraRSStemasKml($locaplic)
121 122 and n2.id_subgrupo = sg.id_subgrupo
122 123 and n2.id_n1 = n1.id_n1
123 124 and n1.id_grupo = g.id_grupo
124   - and (t.kml_tema = 'sim' or t.kml_tema = 'SIM')
  125 + and (t.kml_tema != 'nao' and t.kml_tema != 'NAO')
125 126 and n3.n3_perfil = ''
126 127 and n2.n2_perfil = ''
127 128 and n1.n1_perfil = ''
... ... @@ -142,7 +143,8 @@ function geraRSStemasOgc($locaplic)
142 143 and n2.id_subgrupo = sg.id_subgrupo
143 144 and n2.id_n1 = n1.id_n1
144 145 and n1.id_grupo = g.id_grupo
145   - and (t.ogc_tema != 'nao' or t.ogc_tema != 'NAO')
  146 + and (t.ogc_tema != 'nao' or t.ogc_tema != 'NAO')
  147 + and t.tipoa_tema != 'WMS'
146 148 and n3.n3_perfil = ''
147 149 and n2.n2_perfil = ''
148 150 and n1.n1_perfil = ''
... ...