diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 68a8ff7a3..091cec58a 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -124,7 +124,7 @@ unset($_REQUEST['parent_id']); $re_data = json_decode($re_data,true)['data']; foreach($list_data as $k => $v) { - if(in_array($v['account'], $re_data)) + if(array_key_exists($v['account'], $re_data)) { $list_data[$k]['oa_associated'] = $re_data[$v['account']]; M('promote','tab_')->where(['id' => $v['id']])->setField(['oa_associated' => $re_data[$v['account']]]);