Why you use 'return' in forach in file og_statistics.module, line 400 and 403?
This 'return' breaks loop and not all nodes statistics are inserted into database (only first).
foreach ($nids as $nid) {
.....
if (og_statistics_load($nid)) {
return drupal_write_record('og_statistics', $stat, 'nid');
}
else {
return drupal_write_record('og_statistics', $stat);
}
}
Comments
Comment #1
dawehnerWe need tests for this, but i fixed it already