From 9b45d529ab6d817a96c05f64dab96791af4fb4d0 Mon Sep 17 00:00:00 2001 From: mcfly Date: Sun, 18 Jan 2009 17:05:08 +0000 Subject: [PATCH] Changed default db_Fetch() type to MYSQL_ASSOC, this should reduce unnecessary data exchange. Be on the lookout for possible issues caused by this. --- e107_handlers/mysql_class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index e04a385fd..aa35e7929 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -9,8 +9,8 @@ * mySQL Handler * * $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $ - * $Revision: 1.36 $ - * $Date: 2009-01-10 04:39:54 $ + * $Revision: 1.37 $ + * $Date: 2009-01-18 17:05:08 $ * $Author: mcfly_e107 $ */ @@ -44,7 +44,7 @@ $db_ConnectionID = NULL; // Stores ID for the first DB connection used - which s * MySQL Abstraction class * * @package e107 -* @version $Revision: 1.36 $ +* @version $Revision: 1.37 $ * @author $Author: mcfly_e107 $ */ class db { @@ -549,10 +549,10 @@ class db { * * @access public */ - function db_Fetch($type = MYSQL_BOTH) { + function db_Fetch($type = MYSQL_ASSOC) { global $eTraffic; if (!(is_int($type))) { - $type=MYSQL_BOTH; + $type=MYSQL_ASSOC; } $b = microtime(); $row = @mysql_fetch_array($this->mySQLresult,$type);