LSformRule :: compare : fix find operator method

This commit is contained in:
Benjamin Renard 2019-03-12 11:43:53 +01:00
parent c357c70596
commit b6367fce34

View file

@ -48,9 +48,9 @@ class LSformRule_compare extends LSformRule {
if (empty($operator_name)) {
return '==';
} elseif (isset($this->_operators[$operator_name])) {
return $this->_operators[$operator_name];
} elseif (in_array($operator_name, $this->_operators)) {
} elseif (isset($_operators[$operator_name])) {
return $_operators[$operator_name];
} elseif (in_array($operator_name, $_operators)) {
return $operator_name;
} else {
return '==';