]> git.mjollnir.org Git - moodle.git/commitdiff
Forcing ADODB_FETCH_ASSOC explicity now for any DB.
authorstronk7 <stronk7>
Wed, 20 Sep 2006 22:00:49 +0000 (22:00 +0000)
committerstronk7 <stronk7>
Wed, 20 Sep 2006 22:00:49 +0000 (22:00 +0000)
lib/setup.php

index 36bb1f5a20c69746d27459b4f2914e3216b89463..2e070ba439633cedca9135c53bc2eaa615fe6bce 100644 (file)
@@ -157,7 +157,7 @@ global $HTTPSPAGEREQUIRED;
 /// (it isn't default in all the DB drivers. With the time we should
 /// try to migrate to FETCH_ASSOC, possible with some tricks in the 
 /// recordset_to_array() function to maintain the id field properly.
-    $db->SetFetchMode(ADODB_FETCH_BOTH);
+    $db->SetFetchMode(ADODB_FETCH_ASSOC);
 
 /// Starting here we have a correct DB conection but me must avoid
 /// to execute any DB transaction until "set names" has been executed
@@ -627,5 +627,4 @@ $CFG->os = PHP_OS;
         }
     }
 
-
 ?>