Closed (fixed)
Project:
Mail System
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Sep 2011 at 17:45 UTC
Updated:
24 Sep 2011 at 18:41 UTC
I'm looking at the mailsystem_get_classes() function, specifically lines 272 - 296.
It looks like foreach on the line 287 gets included into outer foreach on the line 272
The problem with it is that the internal foreach will execute for each iteration of outer foreach, which just iterates over all available classes and the value of array_unique(mailsystem_get()) is always the same.
Maybe I don't understand something but it seems like a waste of recourses to me.
Patch is also attached.
| Comment | File | Size | Author |
|---|---|---|---|
| mailsystem_get_classes.patch | 909 bytes | gansbrest |
Comments
Comment #1
pillarsdotnet commentedGood catch. Bug only exists in the 6.x branch; time to run a diff against the three branches and look for other divergences.
Comment #2
pillarsdotnet commentedFixed in 6.x-2.30 release.