From: stronk7 Date: Wed, 20 Sep 2006 22:00:49 +0000 (+0000) Subject: Forcing ADODB_FETCH_ASSOC explicity now for any DB. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1b25502133ac4574084a220ac7baa49b4f546248;p=moodle.git Forcing ADODB_FETCH_ASSOC explicity now for any DB. --- diff --git a/lib/setup.php b/lib/setup.php index 36bb1f5a20..2e070ba439 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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; } } - ?>