Fix that DbUserBackend::inspect() reports 0 users when only one exists

refs #9739

Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
This commit is contained in:
Russell Kubik 2015-07-22 08:55:41 -06:00 committed by Eric Lippmann
parent d2a4b880b1
commit 056ab0c96c
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,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 > 0) {
$insp->write(sprintf('%s active users', $users));
} else {
return $insp->error('0 active users', $users);