diff --git a/Application/Home/Controller/ApplyController.class.php b/Application/Home/Controller/ApplyController.class.php index 76fe0b534..0c9fb0083 100644 --- a/Application/Home/Controller/ApplyController.class.php +++ b/Application/Home/Controller/ApplyController.class.php @@ -1670,7 +1670,7 @@ class ApplyController extends BaseController $promoteIds = array_column($promotes, 'id'); $oldIds = M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $promoteIds], 'offline_status' => 0])->getField('id', true); - $newPromoteIds = array_diff($promoteIds, $oldIds); + $newPromoteIds = $oldIds && count($oldIds) > 0 ? array_diff($promoteIds, $oldIds) : $promoteIds; foreach ($promotes as $promote) { if (in_array($promote['id'], $newPromoteIds)) { $newPromoteData[] = $promote;