Commit 99ef062a4d73068596e0d5c400c0ca41948c1bc6
1 parent
f6407f58
Exists in
master
and in
7 other branches
solução do ticket #13 - funcionamento do filtro em instalações debian
Showing
1 changed file
with
10 additions
and
1 deletions
Show diff stats
classesphp/classe_temas.php
@@ -341,7 +341,16 @@ $testa - Testa o filtro e retorna uma imagem. | @@ -341,7 +341,16 @@ $testa - Testa o filtro e retorna uma imagem. | ||
341 | $filtro = str_replace("("," ",$filtro); | 341 | $filtro = str_replace("("," ",$filtro); |
342 | $filtro = str_replace(")"," ",$filtro); | 342 | $filtro = str_replace(")"," ",$filtro); |
343 | } | 343 | } |
344 | - $this->layer->setfilter($filtro); | 344 | + if ($filtro == "") |
345 | + {$this->layer->setfilter($filtro);} | ||
346 | + else | ||
347 | + { | ||
348 | + $this->layer->setfilter($filtro); | ||
349 | + $v = explode(" ",ms_GetVersion()); | ||
350 | + //corrige bug do mapserver | ||
351 | + if (($v[2] == "4.10.0") && ($this->layer->connectiontype == MS_POSTGIS)) | ||
352 | + {$this->layer->setfilter("\"".$filtro."\"");} | ||
353 | + } | ||
345 | if ($testa == "") | 354 | if ($testa == "") |
346 | { | 355 | { |
347 | $img = $this->mapa->prepareimage(); | 356 | $img = $this->mapa->prepareimage(); |