Error in efficiency calculation
Brought to you by:
gpzhumphrey
The efficiency calculation for the brew blog detail page will be incorrect if the recipe has three or more grains in it. It is due to a typo in the sugar PPG fetch.
I tracked down a bug in includes/efficiency.inc.php, line 13:
$row_sugarPPG3 = mysql_fetch_assoc($sugarPPG1);
That should be changed to:
$row_sugarPPG3 = mysql_fetch_assoc($sugarPPG3);
Thanks for the report. Actually, the whole efficiency and PPG system has already been rewritten so the next version will not have this issue. Not to say it won't have others, though!
The fix you posted should help people with the current version.
This ticket can be closed.
Nice catch. Thanks!