fix comment

This commit is contained in:
apuc committed 2023-05-17 01:19:52 +03:00
1 parent 4ae43ff2da
commit b5013e4ff9
1 file changed
+3 -1
@@ -125,7 +125,9 @@ class CommentController extends ApiController
$request['user_id'] = $user_id;
$model->load($request, '');
$put = array_diff($request, [null, '']);
$model->load($put, '');
if (!$model->save()) {
return $model->errors;