From 056ab0c96cb90c1a52b9c563517e6161fd04dfec Mon Sep 17 00:00:00 2001 From: Russell Kubik Date: Wed, 22 Jul 2015 08:55:41 -0600 Subject: [PATCH] Fix that DbUserBackend::inspect() reports 0 users when only one exists refs #9739 Signed-off-by: Eric Lippmann --- library/Icinga/Authentication/User/DbUserBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Authentication/User/DbUserBackend.php b/library/Icinga/Authentication/User/DbUserBackend.php index 01798a8ff..c0c949fd7 100644 --- a/library/Icinga/Authentication/User/DbUserBackend.php +++ b/library/Icinga/Authentication/User/DbUserBackend.php @@ -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);