mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fix for PHP Catchable fatal error: Object of class PDO could not be converted to string
This commit is contained in:
parent
de3318eb65
commit
154087b367
@ -615,8 +615,14 @@ class e_db_mysql
|
||||
}
|
||||
}
|
||||
|
||||
// $query = var_export($query,true);
|
||||
$db_debug->Mark_Query($query, $buglink, $sQryRes, $aTrace, $mytime, $pTable);
|
||||
if($this->pdo == true && $buglink instanceof PDO)
|
||||
{
|
||||
$db_debug->Mark_Query($query, 'PDO', $sQryRes, $aTrace, $mytime, $pTable);
|
||||
}
|
||||
else
|
||||
{
|
||||
$db_debug->Mark_Query($query, $buglink, $sQryRes, $aTrace, $mytime, $pTable);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user