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