Skip to content
Permalink
Browse files

fixed bug in is_subscribed?

  • Loading branch information...
Amiel Martin
Amiel Martin committed Mar 5, 2009
1 parent 474688f commit b9400f86538207d2c70b3c49ff33acebda9c0d14
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/campaign_monitor/subscriber.rb
@@ -36,8 +36,8 @@ def unsubscribe(list_id)

def is_subscribed?(list_id)
result = cm_client.Subscribers_GetIsSubscribed("ListID" => list_id, "Email" => @email_address)
return true if result == 'True'
return false if result == 'False'
return true if result['__content__'] == 'True'
return false if result['__content__'] == 'False'
raise "Invalid value for is_subscribed?: #{result}"
end
end

0 comments on commit b9400f8

Please sign in to comment.
You can’t perform that action at this time.