mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Fix for PHP Catchable fatal error: Object of class PDO could not be converted to string
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user