mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +02:00
Check for e_LEGACY_MODE moved to db legacy class.
This commit is contained in:
@@ -38,6 +38,11 @@
|
|||||||
|
|
||||||
public function db_Fetch($type = null)
|
public function db_Fetch($type = null)
|
||||||
{
|
{
|
||||||
|
if (defined('e_LEGACY_MODE') && !is_int($type))
|
||||||
|
{
|
||||||
|
return $this->fetch('both');
|
||||||
|
}
|
||||||
|
|
||||||
return $this->fetch($type);
|
return $this->fetch($type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1262,12 +1262,6 @@ class e_db_pdo implements e_db
|
|||||||
*/
|
*/
|
||||||
function fetch($type = null)
|
function fetch($type = null)
|
||||||
{
|
{
|
||||||
if(defined('e_LEGACY_MODE') && !is_int($type))
|
|
||||||
{
|
|
||||||
$type='both';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
switch ($type)
|
switch ($type)
|
||||||
{
|
{
|
||||||
case 'both':
|
case 'both':
|
||||||
|
Reference in New Issue
Block a user