Merge remote-tracking branch 'origin/5.22' into 5.22-master-2020-01-24-13-18-00
[civicrm-core.git] / Civi / Install / Requirements.php
index e7c9581106cbbe902167211a8b4d886d4c28ea43..63b6cb05522ea3965ece02e28a9f417b0527f8be 100644 (file)
@@ -624,7 +624,7 @@ class Requirements {
     mysqli_query($conn, 'DROP TABLE civicrm_utf8mb4_test');
 
     // Ensure that the MySQL driver supports utf8mb4 encoding.
-    $version = mysqli_get_client_info($conn);
+    $version = mysqli_get_client_info();
     if (strpos($version, 'mysqlnd') !== FALSE) {
       // The mysqlnd driver supports utf8mb4 starting at version 5.0.9.
       $version = preg_replace('/^\D+([\d.]+).*/', '$1', $version);