summaryrefslogtreecommitdiff
path: root/lib/api/members.rb
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2018-01-04 16:35:44 +0000
committerMark Fletcher <mark@gitlab.com>2018-01-21 16:36:55 +0000
commit062f5b7126978e08522361e879d7c1723b15c9da (patch)
tree9aee4c80a7803b8f208be8a2be909a6dd3b5da0f /lib/api/members.rb
parentee58763158ed10f12a8fe7c089257a532fe6e724 (diff)
downloadgitlab-ce-062f5b7126978e08522361e879d7c1723b15c9da.tar.gz
Fix error on empty query for Members API
Diffstat (limited to 'lib/api/members.rb')
-rw-r--r--lib/api/members.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/members.rb b/lib/api/members.rb
index 5446f6b54b1..130c6d6da71 100644
--- a/lib/api/members.rb
+++ b/lib/api/members.rb
@@ -22,7 +22,7 @@ module API
source = find_source(source_type, params[:id])
users = source.users
- users = users.merge(User.search(params[:query])) if params[:query]
+ users = users.merge(User.search(params[:query])) if params[:query].present?
present paginate(users), with: Entities::Member, source: source
end