]> git.agnieray.net Git - galette.git/commitdiff
Prevent double load of attachments
authorJohan Cwiklinski <johan@x-tnd.be>
Wed, 13 Nov 2013 06:23:31 +0000 (07:23 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Wed, 13 Nov 2013 06:23:31 +0000 (07:23 +0100)
galette/lib/Galette/Core/Mailing.php

index 0e4a5d39c12a83bfba7719b90cc7ab9b38b07b29..5dfb5fde5dd251476a40ac3614921e0e9bf54b63 100644 (file)
@@ -163,7 +163,9 @@ class Mailing extends GaletteMail
         } else {
             $this->_tmp_path = null;
             $this->_id = $rs->mailing_id;
-            $this->_loadAttachments();
+            if ( !$this->attachments ) {
+                $this->_loadAttachments();
+            }
             $this->_history_id = $rs->mailing_id;
         }
     }