Query类修改 find方法查询不到数据返回 NULL

This commit is contained in:
thinkphp
2016-06-18 09:48:53 +08:00
parent c1438058be
commit 933a61467b

View File

@@ -1753,7 +1753,6 @@ class Query
// 返回结果处理 // 返回结果处理
if ($resultSet) { if ($resultSet) {
// 数据列表读取后的处理 // 数据列表读取后的处理
if (!empty($this->model)) { if (!empty($this->model)) {
// 生成模型对象 // 生成模型对象
@@ -1861,7 +1860,7 @@ class Query
throw new DataNotFoundException('table data not Found:' . $options['table'], $options['table'], $options); throw new DataNotFoundException('table data not Found:' . $options['table'], $options['table'], $options);
} }
} else { } else {
$data = false; $data = null;
} }
return $data; return $data;
} }