Skip to content

Commit

Permalink
Additional log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Juulia Devadze committed Feb 12, 2018
1 parent 3b94ce6 commit 85f516b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/users.inc
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ function os2intra_user_import_check_users(&$users, $duplicate_emails, $duplicate
$update_users = array();
foreach ($users as $key => $user) {
if (array_search($user['email'], $duplicate_emails) !== false) {
os2intra_user_import_save_log('', 'Duplicate email found: Skip user ' . $user['email']);
unset($users[$key]);
continue;
}

if (array_search($user['ad_id'], $duplicate_ids) !== false) {
unset($users[$key]);
os2intra_user_import_save_log('', 'Duplicate user AD found: Skip user ' . $user['ad_id']);
continue;
}

Expand Down

0 comments on commit 85f516b

Please sign in to comment.