Commit 264f82e5 authored by hujun's avatar hujun

array error

parent 006c4222
...@@ -41,7 +41,7 @@ class FollowUpTask ...@@ -41,7 +41,7 @@ class FollowUpTask
if (empty($site_arr)) { if (empty($site_arr)) {
$site_arr = $this->siteModel->findByOne('city', ["id" => $siteId]); $site_arr = $this->siteModel->findByOne('city', ["id" => $siteId]);
} }
if (count($site_arr) <= 0) { if (is_array($site_arr) && count($site_arr) <= 0) {
return false; return false;
} }
//todo 1.判断表是否存在,不存在则创建, //todo 1.判断表是否存在,不存在则创建,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment