mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
BC mySQL Issue #2241
This commit is contained in:
@@ -1476,11 +1476,11 @@ class e_db_mysql
|
|||||||
*
|
*
|
||||||
* @access public
|
* @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'))
|
if(defined('MYSQL_ASSOC'))
|
||||||
@@ -1497,9 +1497,10 @@ class e_db_mysql
|
|||||||
$type = ($this->pdo) ? PDO::FETCH_NUM : MYSQL_NUM;
|
$type = ($this->pdo) ? PDO::FETCH_NUM : MYSQL_NUM;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
case 'assoc':
|
case 'assoc':
|
||||||
case 1; //: // 1
|
case 1; //: // 1
|
||||||
default:
|
|
||||||
$type = ($this->pdo) ? PDO::FETCH_ASSOC : MYSQL_ASSOC;
|
$type = ($this->pdo) ? PDO::FETCH_ASSOC : MYSQL_ASSOC;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user