Try harder to avoid duplicate order state IDs.
authorIain Patterson <me@iain.cx>
Thu, 10 Apr 2014 15:27:14 +0000 (11:27 -0400)
committerIain Patterson <me@iain.cx>
Thu, 10 Apr 2014 15:27:14 +0000 (11:27 -0400)
commit7cbf38d98e84961ccab6cd8213e322fa775a2b9e
tree2e65fbe926a7b53ec210cf1991e41ce747a716dc
parente4e05bf5dad3c8e514c5a939867758170ba36dd7
Try harder to avoid duplicate order state IDs.

An order whose state was changed from delivered to something else then
back to delivered might still appear in the order state array despite
the presence of the hacked query to filter them out.

We now run a secondary hack to remove them from the array.

A better solution is needed here...
lib/report.php