]> git.mjollnir.org Git - moodle.git/commitdiff
Trying to avoid database clashes
authormoodler <moodler>
Sun, 26 Oct 2003 16:08:31 +0000 (16:08 +0000)
committermoodler <moodler>
Sun, 26 Oct 2003 16:08:31 +0000 (16:08 +0000)
auth/db/lib.php

index 1ee17f2ff5f53dfaf340d2ce57b2d334daad6f37..cacc0057cf1b71ab128c8e65c1b55374cf9291a9 100644 (file)
@@ -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;