Skip to content

Commit

Permalink
fix(动态): 修复动态编辑接口报错 #445 #433
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Nov 19, 2018
1 parent 26bdd93 commit 16f3fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/API2/Controllers/Feed/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function update(EditTopicRequest $request, FeedTopicModel $topic): Respon
$response = (new Response())->setStatusCode(Response::HTTP_NO_CONTENT /* 204 */);

// If `logo` and `desc` field all is NULL
$data = array_filter($request->map(['name', 'desc', 'logo']));
$data = array_filter($request->only(['name', 'desc', 'logo']));
if (empty($data)) {
return $response;
}
Expand Down

0 comments on commit 16f3fd9

Please sign in to comment.