AdminAccountPage: Backends do provide a unified interface now, use it

refs #8826
refs #7693
This commit is contained in:
Johannes Meyer 2015-05-04 12:21:17 +02:00
parent c441117324
commit 437090d2b1
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}