[Vtigercrm-commits] [vtiger development] #6373: SendReminder.php missed a reminder
vtiger development
vtiger-tickets at trac.vtiger.com
Tue Oct 27 10:14:48 EDT 2009
#6373: SendReminder.php missed a reminder
-----------------------+----------------------------------------------------
Reporter: dmitry | Owner: developer
Type: defect | Status: new
Priority: minor | Milestone: 5.2.0
Component: vtigercrm | Version: 5.1.0
Keywords: |
-----------------------+----------------------------------------------------
We use vTiger for our CRM. From crontab we run every minute a script to
send us reminders if they're set:
{{{
php public_html/vtigercrm/SendReminder.php
}}}
Generally this works fine. We was suddenly missing a reminder however and
spotted in the debug output:
{{{
<b>Warning</b>: Invalid argument supplied for foreach() in
<b>/home/spam/public_html/vtigercrm/SendReminder.php</b> on line
<b>171</b><br />
}}}
We've added explicit type conversion:
{{{
foreach((array) $to as $pos=>$addr) {
...
}}}
and now it works fine. Hoping you'll be able to find the reason of getting
non-array variable as '$to' argument for 'send_mail' function.
Thanks!
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6373>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list