mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
fix(users): Cast return type of countUsers()
Fix https://github.com/nextcloud/server/issues/51486 Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
dda2148f6f
commit
e23a75dcbb
1 changed files with 7 additions and 1 deletions
|
|
@ -489,7 +489,13 @@ class Database extends ABackend implements
|
|||
->from($this->table);
|
||||
$result = $query->executeQuery();
|
||||
|
||||
return $result->fetchOne();
|
||||
$count = $result->fetchOne();
|
||||
|
||||
if ($count === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (int)$count;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue