From b3071cd490eb2bc8509e3d5676946ff0a3f28eed Mon Sep 17 00:00:00 2001 From: tourze Date: Sun, 12 May 2024 07:51:39 +0000 Subject: [PATCH] =?UTF-8?q?update=20crmeb/public/install/index.php=20to=20?= =?UTF-8?q?fix=20sql=20error=20=E5=B0=91=E4=BA=86=E4=B8=80=E4=B8=AA=20`=20?= =?UTF-8?q?=E5=AF=BC=E8=87=B4sql=E4=B8=8D=E5=AE=8C=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tourze --- crmeb/public/install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/public/install/index.php b/crmeb/public/install/index.php index 6c10a822b..bc2bd17ce 100755 --- a/crmeb/public/install/index.php +++ b/crmeb/public/install/index.php @@ -293,7 +293,7 @@ switch ($step) { $sql = trim($sqlFormat[$i]); if (strstr($sql, 'CREATE TABLE')) { preg_match('/CREATE TABLE (IF NOT EXISTS)? `eb_([^ ]*)`/is', $sql, $matches); - mysqli_query($conn, "DROP TABLE IF EXISTS `$matches[2]"); + mysqli_query($conn, "DROP TABLE IF EXISTS `$matches[2]`"); $sql = str_replace('`eb_', '`' . $dbPrefix, $sql);//替换表前缀 $ret = mysqli_query($conn, $sql); if ($ret) {