mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
MVC - ApiControllerBase.php / fix typo in searchRecordsetBase()
This commit is contained in:
parent
7fec5111bd
commit
91d8b7f8bf
@ -75,7 +75,7 @@ class ApiControllerBase extends ControllerRoot
|
||||
}
|
||||
|
||||
$entry_keys = array_filter($entry_keys, function ($key) use ($searchPhrase, $filter_funct, $fields, $records) {
|
||||
if (is_callable($filter_funct) && !$filter_funct($record)) {
|
||||
if (is_callable($filter_funct) && !$filter_funct($records[$key])) {
|
||||
// not applicable according to $filter_funct()
|
||||
return false;
|
||||
} elseif (!empty($searchPhrase)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user