mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
fix for undefined user
This commit is contained in:
parent
92175eb700
commit
27b8d326e3
|
@ -184,11 +184,7 @@ class Ldap extends Model
|
|||
|
||||
// Create user from LDAP data
|
||||
if (!empty($item["username"])) {
|
||||
|
||||
if (!$user) {
|
||||
$user = new User;
|
||||
}
|
||||
|
||||
$user = new User;
|
||||
$user->first_name = $item["firstname"];
|
||||
$user->last_name = $item["lastname"];
|
||||
$user->username = $item["username"];
|
||||
|
|
Loading…
Reference in a new issue