Invalid argument supplied for foreach()
rjbrown99 - July 6, 2009 - 20:06
| Project: | Similarity Objects |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I haven't seen this reported, but upon every cron run I see the following message in my Drupal log:
Invalid argument supplied for foreach() in /var/www/html/gochicorgohome.com/sites/all/modules/similarity/similarity.module on line 479.
Here's the code at that point:
/**
* Implementation of hook_cron().
*/
function similarity_cron() {
$all = similarity_all_similarities(TRUE);
foreach($all as $sim_obj) {
$sim_obj->calculate();
}
}