mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
update crmeb/public/install/index.php to fix sql error
少了一个 ` 导致sql不完整。 Signed-off-by: tourze <dev@tourze.com>
This commit is contained in:
parent
43a9598c28
commit
b3071cd490
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user