I don't I'm afraid, as the site owner changed hosting company.
If the new code above is the sort of thing that WADA would create, I'm not sure why I would have changed it. And at the same time its odd to think that I would have done it, tested it, and thought it was all working.
Might just have to put it down to one of those odd things.
:)