Accept DbUserBackends with only one single user

fixes #9739
This commit is contained in:
Matthias Jentsch 2015-07-28 12:40:17 +02:00
parent f6ec028627
commit c8d065b3e0
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class DbUserBackend extends DbRepository implements UserBackendInterface, Inspec
$insp->write($this->ds->inspect());
try {
$users = $this->select()->where('is_active', true)->count();
if ($users > 1) {
if ($users >= 1) {
$insp->write(sprintf('%s active users', $users));
} else {
return $insp->error('0 active users', $users);