From ea06e374b74c12d2060761dada091fe56bea7f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 6 Jul 2008 17:03:16 +0200 Subject: [PATCH] objectManager: Fix parameters passed to mail_appdb() --- include/objectManager.php | 10 +++++----- 1 file 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); } }