Skip to content

Commit

Permalink
Correct regex
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 committed Feb 15, 2016
1 parent b4feb02 commit b5ee66a
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 b5ee66a

Please sign in to comment.