From 1b25502133ac4574084a220ac7baa49b4f546248 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 20 Sep 2006 22:00:49 +0000 Subject: [PATCH] Forcing ADODB_FETCH_ASSOC explicity now for any DB. --- lib/setup.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } } - ?> -- 2.39.5