Merge branch 'MDL-54006-master' of git://github.com/lameze/moodle

This commit is contained in:
David Monllao 2016-05-02 14:20:11 +08:00
commit 2df5ede635

View File

@ -1119,8 +1119,10 @@ if ($formdata = $mform2->is_cancelled()) {
}
$upt->close(); // close table
if (!empty($validation)) {
foreach ($validation as $username => $error) {
\core\notification::warning(get_string('invaliduserdata', 'tool_uploaduser', s($username)));
foreach ($validation as $username => $result) {
if ($result !== true) {
\core\notification::warning(get_string('invaliduserdata', 'tool_uploaduser', s($username)));
}
}
}
$cir->close();