From: moodler Date: Sun, 26 Oct 2003 16:08:31 +0000 (+0000) Subject: Trying to avoid database clashes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=953c64fe937f04ab5cd8fc93fd3f8004fa417688;p=moodle.git Trying to avoid database clashes --- diff --git a/auth/db/lib.php b/auth/db/lib.php index 1ee17f2ff5..cacc0057cf 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -27,6 +27,8 @@ function auth_user_login ($username, $password) { $rs = $authdb->Execute("SELECT * FROM $CFG->auth_dbtable WHERE $CFG->auth_dbfielduser = '$username' AND $CFG->auth_dbfieldpass = '$password' "); + $authdb->Close(); + if (!$rs) { notify("Could not connect to the specified authentication database..."); return false;