diff --git a/classesphp/classe_legenda.php b/classesphp/classe_legenda.php index 96f5f13..abef66c 100644 --- a/classesphp/classe_legenda.php +++ b/classesphp/classe_legenda.php @@ -284,6 +284,10 @@ array $exp = str_replace("]'","",$exp); $exp = str_replace("' [","",$exp); $exp = str_replace("] '","",$exp); + $exp = str_replace("and"," and ",$exp); + $exp = str_replace("or"," or ",$exp); + $exp = str_replace("[","",$exp); + $exp = str_replace("]","",$exp); } $teste = $layer->queryByAttributes($itens[0], $exp, 1); if ($teste == 0) -- libgit2 0.21.2