Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikaim committed Aug 23, 2022
1 parent ec8fe70 commit 6602bdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Models/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ public function searchOptions(?string $searchKey, bool $compactKeys = false): ar
}

$values = Arrays::getValues($options,$searchKey);
if (\is_array($values) == false) {
return [];
}
$result = [];

foreach ($values as $key => $value) {
$result = Arrays::setValue($result,$key,$value,'.');
}
Expand Down

0 comments on commit 6602bdb

Please sign in to comment.