Skip to content

Commit

Permalink
Merge pull request #6 from bellcom/f/import_fixes_fredericia_osdherred
Browse files Browse the repository at this point in the history
Additional log messages
  • Loading branch information
juuliabellcom authored Mar 7, 2018
2 parents 6ab9f9e + 85f516b commit f9a9a53
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 f9a9a53

Please sign in to comment.