From a12f9825dd6bd4e0724003d07976112e033ecb8c Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 16 Mar 2012 11:03:31 +0100 Subject: [PATCH] MDL-32046 show warning that unenrolment of all users is not allowed in non-verbose mode --- enrol/database/lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/enrol/database/lib.php b/enrol/database/lib.php index ce8d6d2e1fa..62b44f9d9d1 100644 --- a/enrol/database/lib.php +++ b/enrol/database/lib.php @@ -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