mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Merge pull request #2922 from lonalore/PDOfatalError
Fix for PHP Catchable fatal error: Object of class PDO could not be …
This commit is contained in:
@@ -615,9 +615,15 @@ class e_db_mysql
|
||||
}
|
||||
}
|
||||
|
||||
// $query = var_export($query,true);
|
||||
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
|
||||
{
|
||||
// echo "what happened to db_debug??!!<br />";
|
||||
|
Reference in New Issue
Block a user