소스 검색

Merge branch 'web_sannong_fr' into dev

15313670163 1 개월 전
부모
커밋
2d50e9d642
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/JsonRpc/NewsService.php

+ 3 - 1
app/JsonRpc/NewsService.php

@@ -894,8 +894,10 @@ class NewsService implements NewsServiceInterface
                         if(!empty($choice_id)){
                             $key = array_search($choice['other']['id'], $choice_id);
                             if ($key!== false) {
-                                $$choice_id[$key]=$choice['other']['other_id'];
+                                unset($choice_id[$key]);
+                                $choice_id = array_values($choice_id);
                             }
+                            array_push($choice_id,$choice['other']['other_id']);
                         }else{
                             $choice_id[0] = $choice['other']['other_id'];
                         }