I rejected this suggested edit from an anonymous user, as it clearly conflicted with the original post. The odd thing was though, the edit actually seemed to be rather constructive, as it modified the code (not in an insignificant way), and I was hoping that the suggested edit might be posted as an answer but after having just taken another look at the question I can see that it has not.
Should I post this code modification as an answer myself? By the time that you get around to reading this question, I may have already done so, as it does seem a shame to lost some constructive effort, that was made by someone.
Also, who are these anonymous users? Doesn't anyone who makes an edit actually have to log on to the site? If not, then that seems rather dangerous and foolhardy.