From f50d2ef9e3c8acb2ffc034fc571ff94dc444ed2d Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 14 Feb 2017 16:59:38 +0200 Subject: [PATCH] fix notice --- application/Espo/Core/Formula/Parser.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/Espo/Core/Formula/Parser.php b/application/Espo/Core/Formula/Parser.php index 24ef74ad6f..e17bdbcf00 100644 --- a/application/Espo/Core/Formula/Parser.php +++ b/application/Espo/Core/Formula/Parser.php @@ -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));