Skip to content

Commit

Permalink
Better fix for location LDAP sync
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Aug 2, 2016
1 parent 3b247ba commit 66ad0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ public function postLDAP(Request $request)
$user->email = e($item["email"]);
$user->employee_num = e($item["employee_number"]);
$user->activated = 1;
if ($request->has('location_id')) {
if ($request->input('location_id')!='') {
$user->location_id = e($request->input('location_id'));
}
$user->notes = 'Imported from LDAP';
Expand Down

0 comments on commit 66ad0f1

Please sign in to comment.