Browse Source

修复文档默认点击参数保存错误

tags/6.2.5
tianya 1 year ago
parent
commit
ef34d79877
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/admin/sys_info.php

+ 1
- 1
src/admin/sys_info.php View File

@@ -27,7 +27,7 @@ function ReWriteConfig()
$dsql->Execute();
while ($row = $dsql->GetArray()) {
if ($row['type'] == 'number') {
$row['value'] = preg_replace("#[^0-9.]#","", $row['value']);
$row['value'] = preg_replace("#[^0-9.-]#","", $row['value']);
if ($row['value'] == '') $row['value'] = 0;
fwrite($fp, "\${$row['varname']} = ".$row['value'].";\r\n");
} else {


Loading…
Cancel
Save