Skip to content

Commit

Permalink
Fixed a bug introduced in 8f482fc
Browse files Browse the repository at this point in the history
  • Loading branch information
mironov committed Jan 7, 2010
1 parent 7f264f2 commit bd1f541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xmpp4r/rexmladdons.rb
Expand Up @@ -30,9 +30,9 @@ def replace_element_text(e, t, namespace = nil)
if el.nil?
el = REXML::Element.new(e)
el.add_namespace(namespace)
el.add_text(t)
add_element(el)
else
end
if t
el.text = t
end
self
Expand Down

0 comments on commit bd1f541

Please sign in to comment.