郑晓宇 пре 6 година
родитељ
комит
658cb76512
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Home/Controllers/GameController.php

+ 1 - 1
app/Home/Controllers/GameController.php

@@ -49,7 +49,7 @@ class GameController extends Controller
             $info['question'] = $question; 
             $info['options'] = $options; 
             $info['questions_count'] = count($questions) + 1; 
-            array_merge($questions, $info); 
+            $questions[] = $info;
             Redis::set($room_id . '_questions', json_encode($questions));
             $response['info'] = $info;
         }