Commit 3df949b7 authored by Thomas Citharel's avatar Thomas Citharel 🌲

Merge branch 'fix-nullusername' into 'framasites'

fix username as null

See merge request framasoft/framasite!16
parents e8038afb 727aee80
Pipeline #26073 passed with stage
in 10 minutes and 38 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