Syslog / API - fix stat search ignoring first character

This commit is contained in:
Ad Schellevis 2021-10-18 20:04:06 +02:00
parent 35992e7003
commit fe727d2be1

View File

@ -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;
}
}