Commit 493be660cda958cbc0c86132d6228e94e5cea971
1 parent
306cef4b
Exists in
master
and in
7 other branches
Correção na query postgres que retorna a lista de temas de cada prancha
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
admin/php/xml.php
| ... | ... | @@ -476,7 +476,7 @@ function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) |
| 476 | 476 | } |
| 477 | 477 | function geraXmlAtlas_pegatemas($xml,$id_prancha,$dbh) |
| 478 | 478 | { |
| 479 | - $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = $id_prancha"; | |
| 479 | + $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = '$id_prancha'"; | |
| 480 | 480 | //echo $q; |
| 481 | 481 | $qtemas = $dbh->query($q); |
| 482 | 482 | foreach($qtemas as $row) | ... | ... |