修复:修改数据库备份报错bug

This commit is contained in:
HDM58\hdm58 2023-11-06 15:02:44 +08:00
parent 7b913d53f2
commit 39d553af31

View File

@ -320,7 +320,6 @@ class Backup
//备份数据记录
$result = $db->query("SELECT * FROM `{$table}` LIMIT {$start}, 1000");
foreach ($result as $row) {
$row = array_map('addslashes', $row);
$sql = "INSERT INTO `{$table}` VALUES ('" . str_replace(array("\r", "\n"), array('\\r', '\\n'), implode("', '", $row)) . "');\n";
if (false === $this->write($sql)) {
return false;