Selaa lähdekoodia

【程序目录】!82 update crmeb/public/install/index.php to fix sql error
Merge pull request !82 from tourze/N/A

聆听 1 vuosi sitten
vanhempi
commit
20109a5fb7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      crmeb/public/install/index.php

+ 1 - 1
crmeb/public/install/index.php

@@ -302,7 +302,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) {