修复:修改数据库备份报错bug
This commit is contained in:
parent
7b913d53f2
commit
39d553af31
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user