Module: appdb Branch: master Commit: ea06e374b74c12d2060761dada091fe56bea7f6f URL: http://source.winehq.org/git/appdb.git/?a=commit;h=ea06e374b74c12d2060761dad...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Sun Jul 6 17:03:16 2008 +0200
objectManager: Fix parameters passed to mail_appdb()
---
include/objectManager.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/objectManager.php b/include/objectManager.php index b1280ab..b351965 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -1529,7 +1529,7 @@ class mail { var $sSubject; var $sMessage; - var $aRecipients; + var $sRecipients;
function mail($aInput, $iRecipientId = null) { @@ -1539,7 +1539,7 @@ class mail /* $aInput is returned from objectGetMail(); an array with the following members 0: Mail subject 1: Mail text - 2: Array of recipients + 2: Space-separated list of recipients If iRecipientId is set the third array member is ignored. */ $this->sSubject = $aInput[0]; $this->sMessage = $aInput[1]; @@ -1547,10 +1547,10 @@ class mail if($iRecipientId) { $oRecipient = new user($iRecipientId); - $this->aRecipients = array($oRecipient->sEmail); + $this->sRecipients = $oRecipient->sEmail; } else { - $this->aRecipients = $aInput[2]; + $this->sRecipients = $aInput[2]; } }
@@ -1573,7 +1573,7 @@ class mail
$this->sMessage .= $sReplyText;
- mail_appdb($this->aRecipients, $this->sSubject, $this->sMessage); + mail_appdb($this->sRecipients, $this->sSubject, $this->sMessage); } }