]> git.agnieray.net Git - galette.git/blobdiff - galette/lib/Galette/Core/MailingHistory.php
Fix number of recipients listing mailings
[galette.git] / galette / lib / Galette / Core / MailingHistory.php
index 49048d09ef65bd721e08488239d336d96c93875e..fc1f40927bba8e8dcf144d0068b3f4e4d5cd6854 100644 (file)
@@ -122,6 +122,13 @@ class MailingHistory extends History
                         = Adherent::getSName($this->zdb, $r['mailing_sender']);
                 }
 
+                $recipients = [];
+                if ($r['mailing_recipients'] != null) {
+                    //FIXME: error suppression with @ must be removed, see https://bugs.galette.eu/issues/1744
+                    $recipients = @unserialize($r['mailing_recipients']);
+                }
+                $r['mailing_recipients'] = $recipients;
+
                 $attachments = 0;
                 if (file_exists(GALETTE_ATTACHMENTS_PATH . $r[self::PK])) {
                     $rdi = new \RecursiveDirectoryIterator(