mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00: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:
parent
6ecb41f01a
commit
692c96978a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue