Browse Source

修正PHP7下无法备份的错误

tags/6.0.0
tianya 3 years ago
parent
commit
b1a27c98f8
2 changed files with 5 additions and 1 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -1
      src/dede/sys_data_done.php

+ 1
- 0
.gitignore View File

@@ -25,3 +25,4 @@ src/data/mysqli_error_trace.inc
src/uploads/litimg/*
src/special/
*.bat
src/data/backupdata/*

+ 4
- 1
src/dede/sys_data_done.php View File

@@ -138,13 +138,15 @@ if($dopost=='bak')
else
{
$j = 0;
$fs = $bakStr = '';
$fs = array();
$bakStr = '';
//分析表里的字段信息
$dsql->GetTableFields($nowtable);
$intable = "INSERT INTO `$nowtable` VALUES(";
while($r = $dsql->GetFieldObject())
{
$fs[$j] = trim($r->name);
$j++;
}
@@ -184,6 +186,7 @@ if($dopost=='bak')
//正常情况
$line = $intable;
for($j=0; $j<=$fsd; $j++)
{
if($j < $fsd)


Loading…
Cancel
Save