MDL-7806 Login results in fatal PHP error on enrol/database connect failure (patch by Clinton Graham)

This commit is contained in:
skodak
2006-12-06 09:49:05 +00:00
parent aec86ae027
commit eb7ac7fc00
+1 -1
View File
@@ -18,7 +18,7 @@ function setup_enrolments(&$user) {
// $this->enrol_disconnect() as it is doing some nasty vodoo with $CFG->prefix
$enroldb = $this->enrol_connect();
if (!$enroldb) {
error_log('[ENROL_DB] Could not make a connection: '.$enroldb->ErrorMsg());
error_log('[ENROL_DB] Could not make a connection');
return;
}