From eb7ac7fc0022c5ad6feaad422b37fd78de7b470d Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 6 Dec 2006 09:49:05 +0000 Subject: [PATCH] MDL-7806 Login results in fatal PHP error on enrol/database connect failure (patch by Clinton Graham) --- enrol/database/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/database/enrol.php b/enrol/database/enrol.php index 12e9661567..d97462871c 100644 --- a/enrol/database/enrol.php +++ b/enrol/database/enrol.php @@ -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; } -- 2.39.5