Skip to content

Commit

Permalink
Fix user load function name
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyun committed Apr 12, 2018
1 parent cea5ec0 commit cae50ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/users.inc
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function os2intra_user_import_save_user($user, $uid = '') {
}

// Before create check if user with this name already exist.
if (!empty(user_load($fields['name']))) {
if (!empty(user_load_by_name($fields['name']))) {
os2intra_user_import_save_log($user['employee_id'], 'User with name/AD_id already exists Employee id: ' . $user['employee_id'] . ' Ad id: ' . $user['ad_id']);
return;
}
Expand Down

0 comments on commit cae50ed

Please sign in to comment.