Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker authored Mar 9, 2024
1 parent db87912 commit d267fbe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/elements/SendoutElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -1040,11 +1040,7 @@ public function getPendingRecipients(): array
*/
public function getPendingRecipientCount(): int
{
if ($this->_pendingRecipients !== null) {
return count($this->_pendingRecipients);
}

return Campaign::$plugin->sendouts->getPendingRecipientCount($this);
return count($this->getPendingRecipients());
}

/**
Expand Down

0 comments on commit d267fbe

Please sign in to comment.