mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
Syslog / API - fix stat search ignoring first character
This commit is contained in:
parent
35992e7003
commit
fe727d2be1
@ -94,7 +94,7 @@ class ServiceController extends ApiMutableServiceControllerBase
|
||||
$searchPhrase = $this->request->getPost('searchPhrase');
|
||||
$entry_keys = array_filter($entry_keys, function ($key) use ($searchPhrase, $records) {
|
||||
foreach ($records[$key] as $itemval) {
|
||||
if (strpos($itemval, $searchPhrase)) {
|
||||
if (strpos($itemval, $searchPhrase) !== false) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user