From da9fc89b7e9c2e1e852f3e119f5881ac6174119a Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Thu, 19 Nov 2015 14:20:48 -0500 Subject: [PATCH] Always check the server version Just because the client is >= 5.5.3, it doesn't mean the server is, too. --- administrator/components/com_admin/script.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_admin/script.php b/administrator/components/com_admin/script.php index 6f4ee3753fdf0..939f48575ab46 100644 --- a/administrator/components/com_admin/script.php +++ b/administrator/components/com_admin/script.php @@ -1662,13 +1662,13 @@ private function serverClaimsUtf8mb4Support($format) $client_version = false; } - if ($client_version) + if ($client_version && version_compare($server_version, '5.5.3', '>=')) { if (strpos($client_version, 'mysqlnd') !== false) { $client_version = preg_replace('/^\D+([\d.]+).*/', '$1', $client_version); - return (version_compare($client_version, '5.0.9', '>=') && version_compare($server_version, '5.5.3', '>=')); + return (version_compare($client_version, '5.0.9', '>='); } else {