From 03ea0b32cc9215606cc94a87dff91f05942cd841 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 22 Oct 2010 09:07:02 +0000 Subject: [PATCH] MDL-20210 dod not stop login process when can not connect to auth/db external database --- auth/db/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/db/auth.php b/auth/db/auth.php index d366189811c..09f2c2ff94f 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -61,7 +61,7 @@ class auth_plugin_db extends auth_plugin_base { WHERE {$this->config->fielduser} = '".$this->ext_addslashes($extusername)."' "); if (!$rs) { $authdb->Close(); - print_error('auth_dbcantconnect','auth_db'); + debugging(get_string('auth_dbcantconnect','auth_db')); return false; } @@ -94,7 +94,7 @@ class auth_plugin_db extends auth_plugin_base { AND {$this->config->fieldpass} = '".$this->ext_addslashes($extpassword)."' "); if (!$rs) { $authdb->Close(); - print_error('auth_dbcantconnect','auth_db'); + debugging(get_string('auth_dbcantconnect','auth_db')); return false; } -- 2.43.0