Skip to content

Commit d657bfa

Browse files
committed
Completed tests
1 parent c61d362 commit d657bfa

File tree

2 files changed

+156
-103
lines changed

2 files changed

+156
-103
lines changed

src/ConvertKit_API.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,12 +1094,7 @@ public function get_subscriber_id(string $email_address)
10941094
['email_address' => $email_address]
10951095
);
10961096

1097-
if (!$subscribers) {
1098-
$this->create_log('No subscribers');
1099-
return false;
1100-
}
1101-
1102-
if ($subscribers->total_subscribers === 0) {
1097+
if (!count($subscribers->subscribers)) {
11031098
$this->create_log('No subscribers');
11041099
return false;
11051100
}

0 commit comments

Comments
 (0)