Fixed filtering logs
This commit is contained in:
parent
923207fdfa
commit
1787604ac1
1 changed files with 3 additions and 3 deletions
|
@ -20,11 +20,11 @@ class GetLogJob extends AbstractPageJob
|
|||
$lines = explode(PHP_EOL, str_replace(["\r", "\n"], PHP_EOL, $lines));
|
||||
$lines = array_reverse($lines);
|
||||
|
||||
if (!empty($filter))
|
||||
if (!empty($query))
|
||||
{
|
||||
$lines = array_filter($lines, function($line) use ($filter)
|
||||
$lines = array_filter($lines, function($line) use ($query)
|
||||
{
|
||||
return stripos($line, $filter) !== false;
|
||||
return stripos($line, $query) !== false;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue