PKP Bugzilla – Bug 1903
Reference problem in MailTemplate.inc.php
Last modified: 2005-10-19 11:51:38 PDT
From Nick Caramello: -------------- The mailtemplate.inc.php file has code that is something along these lines: if (is_array(Request::getUserVar('to'))) { $this->setRecipients($this->processAddresses ($this->getRecipients(), Request::getUserVar('to'))); } Which does not work very well since processAddresses takes Request::getUserVar('to') as a reference, and it chokes (at least on my version of PHP and OS). It is easily fixable by changing the code to $to = Request::getUserVar('to'); if (is_array($to)) { $this->setRecipients($this->processAddresses ($this->getRecipients(), $to)); } ----------- Apparently only certain versions of PHP complain about this.
Corrected in BRANCH-2_0 (pre-2.0.3) and CVS HEAD (pre-2.1).
PHP 5.0.5 is known to complain in this situation.