parent
676d20920b
commit
adc2d33814
|
@ -302,9 +302,17 @@ class GroupController extends AuthBackendController
|
||||||
{
|
{
|
||||||
$users = array();
|
$users = array();
|
||||||
foreach ($this->loadUserBackends('Icinga\Data\Selectable') as $backend) {
|
foreach ($this->loadUserBackends('Icinga\Data\Selectable') as $backend) {
|
||||||
|
try {
|
||||||
foreach ($backend->select(array('user_name')) as $row) {
|
foreach ($backend->select(array('user_name')) as $row) {
|
||||||
$users[] = $row;
|
$users[] = $row;
|
||||||
}
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
Logger::error($e);
|
||||||
|
Notification::warning(sprintf(
|
||||||
|
$this->translate('Failed to fetch any users from backend %s. Please check your log'),
|
||||||
|
$backend->getName()
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ArrayDatasource($users);
|
return new ArrayDatasource($users);
|
||||||
|
|
Loading…
Reference in New Issue