1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

BC mySQL Issue #2241

This commit is contained in:
Cameron
2017-01-06 19:30:34 -08:00
parent 162631d04b
commit 7d43ed597b

View File

@@ -1476,11 +1476,11 @@ class e_db_mysql
*
* @access public
*/
function fetch($type = 'assoc')
function fetch($type = null)
{
if (!is_int($type))
if(defined('e_LEGACY_MODE') && !is_int($type))
{
// $type='assoc';
$type='both';
}
if(defined('MYSQL_ASSOC'))
@@ -1497,9 +1497,10 @@ class e_db_mysql
$type = ($this->pdo) ? PDO::FETCH_NUM : MYSQL_NUM;
break;
default:
case 'assoc':
case 1; //: // 1
default:
$type = ($this->pdo) ? PDO::FETCH_ASSOC : MYSQL_ASSOC;
break;
}