Skip to content
Permalink
Browse files

Merge branch 'amiel/master'

  • Loading branch information...
reidab committed Apr 19, 2009
2 parents b1a8383 + b9400f8 commit 95b5b4e1ce7ea177adc892b6854bbbdfd84423d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/campaign_monitor/subscriber.rb
@@ -35,8 +35,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 95b5b4e

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