diff --git a/application/controllers/RoleController.php b/application/controllers/RoleController.php index e0fb3b4a3..c83b20e30 100644 --- a/application/controllers/RoleController.php +++ b/application/controllers/RoleController.php @@ -331,6 +331,10 @@ class RoleController extends AuthBackendController $limit -= count($names); } + if (empty($suggestions)) { + $suggestions[] = [t('Your search does not match any user or group'), []]; + } + $this->document->add(SingleValueSearchControl::createSuggestions($suggestions)); }