MDL-32046 show warning that unenrolment of all users is not allowed in non-verbose mode

This commit is contained in:
Petr Skoda 2012-03-16 11:03:31 +01:00
parent a2b30aa852
commit a12f9825dd

View File

@ -354,9 +354,7 @@ class enrol_database_plugin extends enrol_plugin {
}
$preventfullunenrol = empty($externalcourses);
if ($preventfullunenrol and $unenrolaction == ENROL_EXT_REMOVED_UNENROL) {
if ($verbose) {
mtrace(' Preventing unenrolment of all current users, because it might result in major data loss, there has to be at least one record in external enrol table, sorry.');
}
mtrace(' Preventing unenrolment of all current users, because it might result in major data loss, there has to be at least one record in external enrol table, sorry.');
}
// first find all existing courses with enrol instance