objectManager: Fix parameters passed to mail_appdb()

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-07-06 17:03:16 +02:00
committed by Chris Morgan
parent 017d2d68a0
commit ea06e374b7

View File

@@ -1529,7 +1529,7 @@ class mail
{ {
var $sSubject; var $sSubject;
var $sMessage; var $sMessage;
var $aRecipients; var $sRecipients;
function mail($aInput, $iRecipientId = null) function mail($aInput, $iRecipientId = null)
{ {
@@ -1539,7 +1539,7 @@ class mail
/* $aInput is returned from objectGetMail(); an array with the following members /* $aInput is returned from objectGetMail(); an array with the following members
0: Mail subject 0: Mail subject
1: Mail text 1: Mail text
2: Array of recipients 2: Space-separated list of recipients
If iRecipientId is set the third array member is ignored. */ If iRecipientId is set the third array member is ignored. */
$this->sSubject = $aInput[0]; $this->sSubject = $aInput[0];
$this->sMessage = $aInput[1]; $this->sMessage = $aInput[1];
@@ -1547,10 +1547,10 @@ class mail
if($iRecipientId) if($iRecipientId)
{ {
$oRecipient = new user($iRecipientId); $oRecipient = new user($iRecipientId);
$this->aRecipients = array($oRecipient->sEmail); $this->sRecipients = $oRecipient->sEmail;
} else } else
{ {
$this->aRecipients = $aInput[2]; $this->sRecipients = $aInput[2];
} }
} }
@@ -1573,7 +1573,7 @@ class mail
$this->sMessage .= $sReplyText; $this->sMessage .= $sReplyText;
mail_appdb($this->aRecipients, $this->sSubject, $this->sMessage); mail_appdb($this->sRecipients, $this->sSubject, $this->sMessage);
} }
} }