wesmiler 1 неделя назад
Родитель
Сommit
3974d1c5c9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Exam/SubjectService.php

+ 1 - 1
app/Services/Exam/SubjectService.php

@@ -77,7 +77,7 @@ class SubjectService extends BaseService
     public function edit()
     {
         $data = request()->all();
-        $data = isset($data['description'])?$data['description']:'';
+        $data = isset($data['description'])&&$data['description']?$data['description']:'';
         return parent::edit($data); // TODO: Change the autogenerated stub
     }