diff --git a/app/controllers/tag_controller.rb b/app/controllers/tag_controller.rb index 24c45313b9..bbde1a2cdb 100644 --- a/app/controllers/tag_controller.rb +++ b/app/controllers/tag_controller.rb @@ -338,7 +338,7 @@ def delete end def suggested - if params[:id].length > 2 + if !params[:id].empty? && params[:id].length > 2 @suggestions = [] # filtering out tag spam by requiring tags attached to a published node Tag.where('name LIKE ?', '%' + params[:id] + '%')