mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: blank search was broken
This commit is contained in:
parent
b1ac7491de
commit
a7eec3da5c
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class SearchController < ApplicationController
|
|||
search = Search.new(params[:q], search_args)
|
||||
result = search.execute
|
||||
|
||||
result.find_user_data(guardian)
|
||||
result.find_user_data(guardian) if result
|
||||
|
||||
serializer = serialize_data(result, GroupedSearchResultSerializer, result: result)
|
||||
|
||||
|
|
Loading…
Reference in a new issue