1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 15:57:45 +02: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:
Marc Alexander
2025-04-19 08:51:45 +02:00
committed by GitHub

View File

@@ -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; $enrichment_tags['pdo_mysql'][\PDO::MYSQL_ATTR_FOUND_ROWS] = true;
} }