diff --git a/library/Icinga/Web/Widget/SingleValueSearchControl.php b/library/Icinga/Web/Widget/SingleValueSearchControl.php index 548abcec5..99bbc5c4d 100644 --- a/library/Icinga/Web/Widget/SingleValueSearchControl.php +++ b/library/Icinga/Web/Widget/SingleValueSearchControl.php @@ -164,6 +164,12 @@ class SingleValueSearchControl extends Form $name ])); continue; + } elseif (empty($entries)) { + $ul->add(new HtmlElement('li', ['class' => 'failure-message'], [ + new HtmlElement('em', null, t('No results:')), + $name + ])); + continue; } else { $ul->add(new HtmlElement('li', ['class' => Suggestions::SUGGESTION_TITLE_CLASS], $name)); }