rewrite of r33861, a bit more elegant

This commit is contained in:
Klaus Leithoff 2011-02-21 16:30:27 +00:00
parent 5267605a79
commit 76c981d20d

View File

@ -70,15 +70,11 @@ class notifications_email implements notifications_iface {
$this->recipient = $_recipient; $this->recipient = $_recipient;
$this->config = $_config; $this->config = $_config;
$this->preferences = $_preferences; $this->preferences = $_preferences;
if(!is_object($this->mail)) if(is_object($this->mail))
{
$this->mail = new send();
}
else
{ {
unset($this->mail); unset($this->mail);
$this->mail = new send();
} }
$this->mail = new send();
} }
/** /**