MDL-25337 fixed invalid config test in enrol course sync, credit goes to Nick Thompson

This commit is contained in:
Petr Skoda
2010-11-20 02:24:05 +00:00
parent db9701d901
commit 3338a72fa0
+1 -1
View File
@@ -471,7 +471,7 @@ class enrol_database_plugin extends enrol_plugin {
global $CFG, $DB;
// make sure we sync either enrolments or courses
if (!$this->get_config('dbtype') or !$this->get_config('dbhost') or $this->get_config('newcoursetable') or $this->get_config('newcoursefullname') or $this->get_config('newcourseshortname')) {
if (!$this->get_config('dbtype') or !$this->get_config('dbhost') or !$this->get_config('newcoursetable') or !$this->get_config('newcoursefullname') or !$this->get_config('newcourseshortname')) {
return;
}