MDL-20210 dod not stop login process when can not connect to auth/db external database
[moodle.git] / auth / db / auth.php
index d366189..09f2c2f 100644 (file)
@@ -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;
             }