X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_email.php;h=cbaba21282ba5ad3befe6f9d95bf3f36f35545f0;hp=c38930da8bbaf12507a9d1b2d1e692e6edd916e2;hb=HEAD;hpb=0be732fbb3ae165c64fcf96770586143fd1efecc diff --git a/DataObjects/Core_email.php b/DataObjects/Core_email.php index c38930da..02ce3427 100644 --- a/DataObjects/Core_email.php +++ b/DataObjects/Core_email.php @@ -74,7 +74,7 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject $i->ontable = $this->tableName(); $i->find(); while ($i->fetch()){ - $i->beforeDelete(); + $i->beforeDelete(array(), $roo); $i->delete(); } } @@ -294,7 +294,7 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject $html->item(0)->appendChild($element); } - $this->plaintext = str_replace("{unsubscribe_link}", $unsubscribe, $this->plaintext); + $this->plaintext = str_replace("{unsubscribe_link}", $unsubscribe, empty($this->plaintext) ? '' : $this->plaintext); }