mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 18:30:55 -06:00
Fix issue where an array is passed instead of a string.
This commit is contained in:
parent
ab5b7f7893
commit
791b028dc4
@ -416,7 +416,9 @@ class AutoCompleteController extends Controller
|
||||
$return = array_values(
|
||||
array_unique(
|
||||
array_filter(
|
||||
$return, function (string $value) use ($search) {
|
||||
$return, function (array $array) use ($search) {
|
||||
$value = $array['name'];
|
||||
|
||||
return !(false === stripos($value, $search));
|
||||
}, ARRAY_FILTER_USE_BOTH
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user