mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge pull request #6795 from rxu/ticket/17488
[ticket/17488] Fix PHP error when MySQL PDO driver is not enabled
This commit is contained in:
commit
ef010db26c
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