1
0
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:
Lóna Lore 2017-12-16 11:59:35 +01:00
parent de3318eb65
commit 154087b367

View File

@ -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
{