From 5589ec7c8a63a7ce7f5458e4dde9d7dc06b68dd3 Mon Sep 17 00:00:00 2001 From: mark burdett Date: Wed, 24 Apr 2019 11:32:32 -0700 Subject: [PATCH] Fix typo in DROP table query. --- Civi/Install/Requirements.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Civi/Install/Requirements.php b/Civi/Install/Requirements.php index 7d8fd3821c4e..e7c9581106cb 100644 --- a/Civi/Install/Requirements.php +++ b/Civi/Install/Requirements.php @@ -613,6 +613,7 @@ public function checkMysqlUtf8mb4($db_config) { return $results; } + mysqli_query($conn, 'DROP TABLE IF EXISTS civicrm_utf8mb4_test'); $r = mysqli_query($conn, 'CREATE TABLE civicrm_utf8mb4_test (id VARCHAR(255), PRIMARY KEY(id(255))) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC ENGINE=INNODB'); if (!$r) { $results['severity'] = $this::REQUIREMENT_WARNING; @@ -620,7 +621,7 @@ public function checkMysqlUtf8mb4($db_config) { mysqli_close($conn); return $results; } - mysqli_query('DROP TABLE civicrm_utf8mb4_test'); + mysqli_query($conn, 'DROP TABLE civicrm_utf8mb4_test'); // Ensure that the MySQL driver supports utf8mb4 encoding. $version = mysqli_get_client_info($conn);