Don't re-instantiate Koha::Calendar objects unnecessarily We were calling Koha::Calender->new on the same branchcode within a set of nested loops. This is just silly, only one object is required.
This is fixed in bug 17952
Oh, nice spot, thanks for pointing that out.. means I won't have to extract it from our local branch :) Will mark resolved duplicate and take a look at the other bug. *** This bug has been marked as a duplicate of bug 17952 ***