diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index 9c3fb801e..bb8cc8599 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -512,7 +512,7 @@ class FilterEditor extends AbstractWidget $res = array(); foreach ($array as $k => $v) { if (is_int($k)) { - $res[$v] = str_replace('_', ' ', ucfirst($v)); + $res[$v] = ucwords(str_replace('_', ' ', $v)); } elseif ($flip) { $res[$v] = $k; } else {