Commit e6414a05 authored by jplang's avatar jplang
Browse files

Don't check that param is a Hash.

git-svn-id: https://svn.redmine.org/redmine/trunk@16607 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent a75d29ff
......@@ -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 ||= {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment