15313670163 hai 1 mes
pai
achega
1ff830fdc9
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      app/JsonRpc/NewsService.php

+ 1 - 3
app/JsonRpc/NewsService.php

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