1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 18:30:53 +02:00

db_Fetch() e_LEGACY_MODE permanently removed. Old plugins should use $sql->fetch('both'); if this is still required.

This commit is contained in:
Cameron
2019-02-13 10:31:28 -08:00
parent a8d1541b9d
commit c45ed85c5c

View File

@@ -1533,10 +1533,6 @@ class e_db_mysql
*/ */
function fetch($type = null) function fetch($type = null)
{ {
if(defined('e_LEGACY_MODE') && !is_int($type))
{
$type='both';
}
if(defined('MYSQL_ASSOC')) if(defined('MYSQL_ASSOC'))
{ {
@@ -1555,7 +1551,6 @@ class e_db_mysql
default: default:
case 'assoc': case 'assoc':
case 1; //: // 1 case 1; //: // 1
$type = ($this->pdo) ? PDO::FETCH_ASSOC : MYSQL_ASSOC; $type = ($this->pdo) ? PDO::FETCH_ASSOC : MYSQL_ASSOC;
break; break;
} }