Skip to content

Commit ad7948d

Browse files
committed
improvements to the sendfy response handling
1 parent 65db7fb commit ad7948d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function doEmailSetup($email, $params = false)
110110
\StatisticClient::tick('Sendy', 'subscribe');
111111
$context = stream_context_create($opts);
112112
$result = trim(file_get_contents(SENDY_APIURL.'/subscribe', false, $context));
113-
if ($result != '1') {
113+
if ($result != '1' && $result != 'Already subscribed.') {
114114
\StatisticClient::report('Sendy', 'subscribe', false, 100, $result, STATISTICS_SERVER);
115115
myadmin_log('accounts', 'info', "Sendy Response: {$result}", __LINE__, __FILE__);
116116
} else {

0 commit comments

Comments
 (0)