1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

ToHashParser fix for if last is empty but value isn't

This commit is contained in:
geemus 2010-06-18 14:54:34 -07:00
parent cbd78e258c
commit 3ea7770421

View file

@ -39,7 +39,7 @@ module Fog
def end_element(name)
last = @stack.pop
if last.empty?
if last.empty? && @value.empty?
@stack.last[name.to_sym] = ''
elsif @value.empty?
@stack.last[name.to_sym] = @value