print"Notice: import-oracle-users.perl: Creating new user\n"if$debug;
$sth=$dbh->prepare("
...
...
@@ -168,10 +186,6 @@ while ($line = <Reader>){
$sth=$dbh->prepare("INSERT INTO im_employees (employee_id) VALUES ($user_id)");
$sth->execute()||die"Error: import-oracle-users.perl: 6: Unable to execute SQL statement.\n";
# Add the original email to a DynField in table "persons"
$sth=$dbh->prepare("UPDATE persons SET sisla_email = '$user_email' where person_id = $user_id");
$sth->execute()||die"Error: import-oracle-users.perl: 6: Unable to execute SQL statement.\n";
# make the user an approved member of "registered_users"
my$sth=$dbh->prepare("SELECT count(*) as exists_p from acs_rels where object_id_one = $registered_users_group_id and object_id_two = $user_id and rel_type = 'membership_rel'");
$sth->execute()||die"Error: import-oracle-users.perl: 7a: Unable to execute SQL statement.\n";
...
...
@@ -183,6 +197,11 @@ while ($line = <Reader>){
}
}
# Add the original email to a DynField in table "persons"
$sth=$dbh->prepare("UPDATE persons SET sisla_email = '$sisla_email' where person_id = $user_id");
$sth->execute()||die"Error: import-oracle-users.perl: 6: Unable to execute SQL statement.\n";
if(""eq$user_id){
print"Error: import-oracle-users.perl: Found empty user_id for user_nr=$user_nr.\n";