visuddhinanda 3 лет назад
Родитель
Сommit
0ccd4b21bd
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/Http/Controllers/SentenceController.php

+ 3 - 1
app/Http/Controllers/SentenceController.php

@@ -143,7 +143,9 @@ class SentenceController extends Controller
         foreach ($sent as $value) {
             # code...
             $ids = explode('-',$value);
-            $query[] = $ids;
+            if(count($ids)===4){
+                $query[] = $ids;
+            }
         }
         $table = Sentence::select(['id','book_id','paragraph','word_start','word_end','content','channel_uid','updated_at'])
                         ->where('channel_uid', $request->get('channel'))