MantisBT: master-2.0.x 7f18e584

Author Committer Branch Timestamp Parent
Paul Richards Paul Richards master-2.0.x 2012-06-16 07:41 master-2.0.x e2044ac7
Changeset

Only use array_merge() on subproject_ids when
required

Previously, the subproject merging code unconditionally called array_merge()
for each project, even if there were no subproject_ids to merge.

For a big number of projects, these array_merge() invocations are expensive.
Tweak this to only call array_merge() if there are subproject_ids to merge.

mod - core/filter_api.php Diff File