mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix logging filter "Error" when not entries (#5267)
This commit is contained in:
parent
ed128ae634
commit
7a0f6c1ee1
@ -4,8 +4,7 @@ HumHub Changelog
|
||||
|
||||
1.9.2 (Unreleased)
|
||||
------------------
|
||||
|
||||
|
||||
- Fix #5265: Fix logging filter "Error" when not entries
|
||||
|
||||
|
||||
1.9.1 (August 30, 2021)
|
||||
|
@ -241,6 +241,13 @@ class LogFilterForm extends Model
|
||||
$result[$level] = static::getLevelLabel($level);
|
||||
}
|
||||
|
||||
if (is_array($this->levels)) {
|
||||
foreach ($this->levels as $defaultLevel) {
|
||||
if (!isset($result[$defaultLevel]) && ($defaultLevelTitle = static::getLevelLabel($defaultLevel))) {
|
||||
$result[$defaultLevel] = $defaultLevelTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user