update crmeb/public/install/index.php to fix sql error

少了一个 ` 导致sql不完整。

Signed-off-by: tourze <dev@tourze.com>
This commit is contained in:
tourze 2024-05-12 07:51:39 +00:00 committed by Gitee
parent 43a9598c28
commit b3071cd490
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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) {