diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index c01eaf762c..d569359b54 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -181,7 +181,7 @@ class InvitesController < ApplicationController max_bulk_invites = SiteSetting.max_bulk_invites CSV.foreach(file.tempfile) do |row| count += 1 - invites.push({ email: row[0], groups: row[1], topic_id: row[2] }) if row[0].present? + invites.push(email: row[0], groups: row[1], topic_id: row[2]) if row[0].present? break if count >= max_bulk_invites end