Skip to content

Commit

Permalink
Merge pull request #8 from richard67/patch-1
Browse files Browse the repository at this point in the history
Correct regex
  • Loading branch information
roland-d committed Feb 16, 2016
2 parents b4feb02 + b5ee66a commit dbaaa2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/database/driver/mysql.php
Expand Up @@ -522,7 +522,7 @@ private function serverClaimsUtf8mb4Support()
{
if (strpos($client_version, 'mysqlnd') !== false)
{
$client_version = preg_replace('/^\D([\d.]).*/', '$1', $client_version);
$client_version = preg_replace('/^\D+([\d.]+).*/', '$1', $client_version);

return version_compare($client_version, '5.0.9', '>=');
}
Expand Down

0 comments on commit dbaaa2a

Please sign in to comment.