AdminAccountPage: Backends do provide a unified interface now, use it
refs #8826 refs #7693
This commit is contained in:
parent
c441117324
commit
437090d2b1
|
@ -280,8 +280,8 @@ class AdminAccountPage extends Form
|
|||
}
|
||||
|
||||
try {
|
||||
return $backend->listUsers();
|
||||
} catch (Exception $e) {
|
||||
return $backend->select(array('user_name'))->fetchColumn();
|
||||
} catch (Exception $_) {
|
||||
// No need to handle anything special here. Error means no users found.
|
||||
return array();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue