##// END OF EJS Templates
Fixed that non array commit_update_keywords raises an error (#7590)....
Jean-Philippe Lang -
r11986:60d6e169781e
parent child
Show More
@@ -47,7 +47,7 class SettingsController < ApplicationController
47 47 @guessed_host_and_path << ('/'+ Redmine::Utils.relative_url_root.gsub(%r{^\/}, '')) unless Redmine::Utils.relative_url_root.blank?
48 48
49 49 @commit_update_keywords = Setting.commit_update_keywords.dup
50 @commit_update_keywords << {} if @commit_update_keywords.blank?
50 @commit_update_keywords = [{}] unless @commit_update_keywords.is_a?(Array) && @commit_update_keywords.any?
51 51
52 52 Redmine::Themes.rescan
53 53 end
General Comments 0
You need to be logged in to leave comments. Login now