fix notice

This commit is contained in:
yuri
2017-02-14 16:59:38 +02:00
parent 109ee17a47
commit f50d2ef9e3

View File

@@ -229,7 +229,11 @@ class Parser
$possibleRightOperator = trim($operator . $expression[$index + 1]);
}
}
if ($possibleRightOperator && $possibleRightOperator != $operator && $this->operatorMap[$possibleRightOperator]) continue;
if (
$possibleRightOperator &&
$possibleRightOperator != $operator &&
!empty($this->operatorMap[$possibleRightOperator])
) continue;
$firstPart = substr($expression, 0, $index);
$secondPart = substr($expression, $index + strlen($operator));