Commit 727aee80 authored by Thomas Citharel's avatar Thomas Citharel 🌲

fix username as null

Signed-off-by: Thomas Citharel's avatarThomas Citharel <tcit@tcit.fr>
parent e8038afb
Pipeline #26071 passed with stage
in 12 minutes and 47 seconds
......@@ -95,7 +95,7 @@ class SiteFactory {
$data = Yaml::parse(file_get_contents($this->blogAccountsPath . '/' . $siteDomain . '/user/accounts/' . $userSite . '.yaml'));
$user = new AbstractSiteUser();
$user->setUsername($data['fullname'])->setEmail($data['email'])->setAdmin(isset($data['access']['admin']));
$user->setUsername($data['fullname'] ? $data['fullname'] : '')->setEmail($data['email'])->setAdmin(isset($data['access']['admin']));
return $user;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment