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

dawehner’s picture

Status: Active » Needs work
Issue tags: +Needs tests

We need tests for this, but i fixed it already