Skip to content

Commit

Permalink
fix(feed): 修复 $desc 为读取到的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Aug 2, 2018
1 parent a4398d8 commit 34184ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/API2/Controllers/Feed/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ public function update(EditTopicRequest $request, ModelsTypes $types, FeedTopicM

// If `logo` and `desc` field all is NULL
$with = null;
if (! ($logo = (int) $request->input('logo')) && ! ($desc = $request->input('desc'))) {
$desc = $request->input('desc');
if (! ($logo = (int) $request->input('logo')) && ! $desc) {
return $response;
} elseif ($logo && $logo !== $topic->logo) {
$with = (new FileWithModel)
Expand Down

0 comments on commit 34184ee

Please sign in to comment.