diff --git a/app/API2/Controllers/Feed/Topic.php b/app/API2/Controllers/Feed/Topic.php index 8fa087a7d..788d72ff4 100644 --- a/app/API2/Controllers/Feed/Topic.php +++ b/app/API2/Controllers/Feed/Topic.php @@ -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; }