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