浏览代码

Update Admin\Instal page

Visman 2 年之前
父节点
当前提交
2b4cdd78dc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Models/Pages/Admin/Install.php

+ 2 - 2
app/Models/Pages/Admin/Install.php

@@ -641,9 +641,9 @@ class Install extends Admin
 
             $this->c->DB->exec("INSERT INTO {$table} (test_field) VALUES (?i)", [123]);
 
-            $value = $this->c->DB->query("SELECT test_field FROM {$table} WHERE test_field=123")->fetchColumn();
+            $data = $this->c->DB->query("SELECT test_field FROM {$table} WHERE test_field=123")->fetch();
 
-            if (123 !== $value) {
+            if (123 !== $data['test_field']) {
                 $v->addError('Wrong data type for numeric fields');
             }