Needs work
Project:
Organic Group Statistics
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Apr 2010 at 18:44 UTC
Updated:
16 Apr 2010 at 22:46 UTC
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