Skip to content

Commit

Permalink
Hotfix: change the way of checking array size and condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
coderimus authored and dimonovp committed Mar 20, 2018
1 parent 73099fd commit b4eede9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Model/Widget/Grid/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function parseExpression($expression)
$expression = trim($expression);
foreach ($this->_operations as $operation) {
$splittedExpr = preg_split('/\\' . $operation . '/', $expression, -1, PREG_SPLIT_DELIM_CAPTURE);
if (!empty($splittedExpr)) {
$count = count($splittedExpr);
$count = count($splittedExpr);
if ($count > 1) {
for ($i = 0; $i < $count; $i++) {
$stack = array_merge($stack, $this->parseExpression($splittedExpr[$i]));
if ($i > 0) {
Expand Down

0 comments on commit b4eede9

Please sign in to comment.