Commit 1ad60f67d07ceb34be988d4d5bc0e93751811ed1
1 parent
f25f27ed
Exists in
master
and in
7 other branches
correção no cálculo de gráficos em layers postgis
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
classesphp/classe_legenda.php
| ... | ... | @@ -284,6 +284,10 @@ array |
| 284 | 284 | $exp = str_replace("]'","",$exp); |
| 285 | 285 | $exp = str_replace("' [","",$exp); |
| 286 | 286 | $exp = str_replace("] '","",$exp); |
| 287 | + $exp = str_replace("and"," and ",$exp); | |
| 288 | + $exp = str_replace("or"," or ",$exp); | |
| 289 | + $exp = str_replace("[","",$exp); | |
| 290 | + $exp = str_replace("]","",$exp); | |
| 287 | 291 | } |
| 288 | 292 | $teste = $layer->queryByAttributes($itens[0], $exp, 1); |
| 289 | 293 | if ($teste == 0) | ... | ... |