Commit 96dafc12 authored by Olivier Salaun's avatar Olivier Salaun
Browse files

Revert "Every time users were loaded via include8sql_query Sympa would raise...

Revert "Every time users were loaded via include8sql_query Sympa would raise warnings : Use of uninitialized value  in printf at /usr/local/sympa/bin/Sympa/DataSource/SQL.pm line 91. Obviously the issue was introduced back in 2015, as mentionned in https://listes.renater.fr/sympa/arc/sympa-users/2015-12/msg00002.html."

This reverts commit 067e92a1.
parent 067e92a1
......@@ -86,14 +86,9 @@ sub _open {
my ($email, $value) = @$row;
next unless defined $email and length $email;
$email =~ s/[\t\r\n]+/ /g;
# The SQL query may return the user name
if ($value) {
$value =~ s/[\t\r\n]+/ /g if defined $value;
printf $tmpfh "%s\t%s\n", $email, $value;
}else {
printf $tmpfh "%s\n", $email;
}
$value =~ s/[\t\r\n]+/ /g if defined $value;
printf $tmpfh "%s\t%s\n", $email, $value;
}
}
$sth->finish;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment