| @@ 33-39 (lines=7) @@ | ||
| 30 | ) |
|
| 31 | ) |
|
| 32 | ); |
|
| 33 | if ($mailChimp->success()) { |
|
| 34 | $this->owner->SignedUpToMailchimp = true; |
|
| 35 | $this->owner->write(); |
|
| 36 | return true; |
|
| 37 | } else { |
|
| 38 | return false; |
|
| 39 | } |
|
| 40 | return $result; |
|
| 41 | } |
|
| 42 | ||
| @@ 62-68 (lines=7) @@ | ||
| 59 | $result = $mailChimp->get( |
|
| 60 | "lists/".$listID."/members/".$subscriberHash |
|
| 61 | ); |
|
| 62 | if ($mailChimp->success()) { |
|
| 63 | $this->owner->SignedUpToMailchimp = true; |
|
| 64 | $this->owner->write(); |
|
| 65 | return true; |
|
| 66 | } else { |
|
| 67 | return false; |
|
| 68 | } |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|