diff options
author | mh <mh@immerda.ch> | 2011-12-27 16:00:17 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-12-27 16:00:17 +0100 |
commit | 56b558c9e49cda84a047f339b5671cccb2bc1166 (patch) | |
tree | 4501830ac2dd3d179533f4785cea9be7be216724 /templates | |
parent | 4408107942e255bcc74f36f649caa4369a0f10a2 (diff) |
reject undef items
Diffstat (limited to 'templates')
-rw-r--r-- | templates/vhosts/partials/php_settings.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/vhosts/partials/php_settings.erb b/templates/vhosts/partials/php_settings.erb index ae50bf8..7840987 100644 --- a/templates/vhosts/partials/php_settings.erb +++ b/templates/vhosts/partials/php_settings.erb @@ -1,5 +1,5 @@ <% if run_mode != 'fcgid' - php_settings.keys.sort.each do |key| + php_settings.reject{|k,v| v == :undef }.keys.sort.each do |key| dvalue = php_settings[key].to_s.downcase munged_value = if dvalue == 'true' 'on' @@ -16,4 +16,4 @@ php_admin_value <%= key %> <%= munged_value %> <% end -%> <% end -%> -<% end -%>
\ No newline at end of file +<% end -%> |