[kronolith] # Ralph,if (is_array ($tf_recipients)),{, Horde::logMessage(sprintf('Sending reminder for %s to %s', $event->title, implode(', ', $tf_recipients)), __FILE__, __LINE__, PEAR_LOG_DEBUG); , $sent = $mime->send(implode(', ', $tf_recipients), $msg_headers, $mail_driver, $mail_params); ,},else,{ , Horde::logMessage(sprintf('Sending reminder for %s to %s', $event->title, $tf_recipients), __FILE__, __LINE__, PEAR_LOG_DEBUG); , $sent = $mime->send($tf_recipients, $msg_headers, $mail_driver, $mail_params); ,}Re: Reminders not working with 2.0.4

Ralph Brugger gname at public.linkpool.de
Sun Oct 30 11:56:27 PST 2005


Hi,

> I've recently upgraded all of my horde modules to the current stable
> releases and my calendar reminders stopped working.  I keep getting this
> error in my log when a reminder is trying to be sent.
> Oct 30 05:45:01 test65-1 php: PHP Warning:  implode(): Bad arguments. in
> /home/httpd/html/horde/kronolith/lib/Scheduler/kronolith.php on line 210
> Oct 30 05:45:01 test65-1 php: PHP Warning:  implode(): Bad arguments. in
> /home/httpd/html/horde/kronolith/lib/Scheduler/kronolith.php on line 211

I got the same error messages.
I've changed the code like this:


if (is_array ($tf_recipients))
{
  Horde::logMessage(sprintf('Sending reminder for %s to %s',
$event->title, implode(', ', $tf_recipients)), __FILE__, __LINE__,
PEAR_LOG_DEBUG);
  $sent = $mime->send(implode(', ', $tf_recipients), $msg_headers,
$mail_driver, $mail_params);
}
else
{
  Horde::logMessage(sprintf('Sending reminder for %s to %s',
$event->title, $tf_recipients), __FILE__, __LINE__, PEAR_LOG_DEBUG);
  $sent = $mime->send($tf_recipients, $msg_headers, $mail_driver,
$mail_params);
}

Problem occured when $tf_recipients contained only one recipient and not
an array of recipients.

Ralph



More information about the kronolith mailing list