Enable users without group to fallback to this translated group title
//Process result
foreach($res as $data) {
//Get translated group
//Process result
foreach($res as $data) {
//Get translated group
- $group = $translator->trans($data['g_title']?:'ROLE_USER');
+ $group = $translator->trans($data['g_title']?:'User');
//Get translated title
$title = $translator->trans($data['t_short']);
//Init group subarray
//Get translated title
$title = $translator->trans($data['t_short']);
//Init group subarray