mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 20:40:24 +02:00
[ticket/17488] Fix PHP error when MySQL PDO driver is not enabled
Check pdo_mysql extension for being loaded to use respective \PDO::MYSQL_ATTR_FOUND_ROWS constant. PHPBB-17488
This commit is contained in:
@@ -164,7 +164,7 @@ class connection_parameter_factory
|
||||
],
|
||||
];
|
||||
|
||||
if ($params['driver'] === 'pdo_mysql')
|
||||
if ($params['driver'] === 'pdo_mysql' && extension_loaded('pdo_mysql'))
|
||||
{
|
||||
$enrichment_tags['pdo_mysql'][\PDO::MYSQL_ATTR_FOUND_ROWS] = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user