From: Jean-Philippe Lang Date: Sat, 3 Jun 2017 09:21:27 +0000 (+0000) Subject: Don't check that param is a Hash. X-Git-Tag: 3.4.0~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09b0c3135c27f4198daf797b451f1276a94dc56c;p=redmine.git Don't check that param is a Hash. git-svn-id: http://svn.redmine.org/redmine/trunk@16607 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index abf106d5f..01859d4e0 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -156,7 +156,7 @@ class WikiController < ApplicationController @content = @page.content || WikiContent.new(:page => @page) content_params = params[:content] - if content_params.nil? && params[:wiki_page].is_a?(Hash) + if content_params.nil? && params[:wiki_page].present? content_params = params[:wiki_page].slice(:text, :comments, :version) end content_params ||= {}