mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/12422] Fix debug warning in log search
PHPBB3-12422
This commit is contained in:
parent
c31ea7af66
commit
1905a2a7b2
1 changed files with 16 additions and 2 deletions
|
@ -643,9 +643,23 @@ class log implements \phpbb\log\log_interface
|
||||||
$operations = array();
|
$operations = array();
|
||||||
foreach ($this->user->lang as $key => $value)
|
foreach ($this->user->lang as $key => $value)
|
||||||
{
|
{
|
||||||
if (substr($key, 0, 4) == 'LOG_' && preg_match($keywords_pattern, $value))
|
if (substr($key, 0, 4) == 'LOG_')
|
||||||
|
{
|
||||||
|
if (is_array($value))
|
||||||
|
{
|
||||||
|
foreach ($value as $plural_value)
|
||||||
|
{
|
||||||
|
if (preg_match($keywords_pattern, $plural_value))
|
||||||
{
|
{
|
||||||
$operations[] = $key;
|
$operations[] = $key;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (preg_match($keywords_pattern, $value))
|
||||||
|
{
|
||||||
|
$operations[] = $key;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue