Skip to content

Commit

Permalink
fix code for PHP 7.4 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Apr 5, 2023
1 parent b7593d6 commit b6b0b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Controller/Component/FilterComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function beforeRender(Controller $controller)
break;

default:
continue;
continue 2;
}

// if no value has been set, show the default one
Expand Down
4 changes: 2 additions & 2 deletions Model/Behavior/FilteredBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ protected function buildFilterConditions(array &$query, $field, $options, $value
case 'text':
if (strlen(trim(strval($value))) == 0)
{
continue;
break;
}

$condition = $options['condition'];
Expand Down Expand Up @@ -385,7 +385,7 @@ protected function buildFilterConditions(array &$query, $field, $options, $value
case 'select':
if (is_string($value) && strlen(trim(strval($value))) == 0)
{
continue;
break;
}

$query['conditions'][$field] = $value;
Expand Down

0 comments on commit b6b0b02

Please sign in to comment.