Skip to content

Commit

Permalink
PHP: remove usage of each(), fixes #240
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tze committed Jun 16, 2023
1 parent 7763c66 commit e72c881
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Application/Controller/Tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ protected function evaluateSearch($fields, $operators, $values) {
$mainCondition = $subCondition = [];
$mainParams = $subParams = [];

reset($fields);
while (list($i, $key) = each($fields)) {
foreach ($fields as $i => $key) {
$condition = '';
$params = [];

Expand Down

0 comments on commit e72c881

Please sign in to comment.