diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index 676d207c22..845db27ef9 100755 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -251,7 +251,7 @@ class LdapSync extends Command // Creating a new user. $user = new User; $user->password = $user->noPassword(); - $item['locale'] = app()->getLocale(); + $user->locale = app()->getLocale(); $user->activated = 1; // newly created users can log in by default, unless AD's UAC is in use, or an active flag is set (below) $item['createorupdate'] = 'created'; }