From d267fbeead51113e4a7a160beeb7650d1598f661 Mon Sep 17 00:00:00 2001 From: Ben Croker <57572400+bencroker@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:54:44 -0600 Subject: [PATCH] Revert changes --- src/elements/SendoutElement.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/elements/SendoutElement.php b/src/elements/SendoutElement.php index 4bcd14c2..d3a69788 100755 --- a/src/elements/SendoutElement.php +++ b/src/elements/SendoutElement.php @@ -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()); } /**