Skip to content
Snippets Groups Projects
Unverified Commit c6f770ea authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Create account structure also for empty record

parent 703d716a
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ class AccountManager implements IAccountManager {
$userDataArray = json_decode($result[0]['data'], true);
$jsonError = json_last_error();
if ($userDataArray === null || $jsonError !== JSON_ERROR_NONE) {
if ($userDataArray === null || $userDataArray === [] || $jsonError !== JSON_ERROR_NONE) {
$this->logger->critical("User data of $uid contained invalid JSON (error $jsonError), hence falling back to a default user record");
return $this->buildDefaultUserRecord($user);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment