user_sql-80 User Dsiaply Issue

Correctly load user list when display name is null
This commit is contained in:
Marcin Łojewski
2018-12-15 19:35:20 +01:00
parent e2c8759cbe
commit 4be9acb32c

View File

@@ -263,6 +263,10 @@ final class UserBackend extends ABackend implements
return false;
}
if (is_null($user->name)) {
return false;
}
$name = $user->name;
$this->logger->debug(
"Returning getDisplayName($uid): $name",
@@ -389,8 +393,10 @@ final class UserBackend extends ABackend implements
$names = [];
foreach ($users as $user) {
if (!is_null($user->name)) {
$names[$user] = $user->name;
}
}
$this->logger->debug(
"Returning getDisplayNames($search, $limit, $offset): count("