Reynaldo, sorry for the late reply but between a nasty cold and the
vB 3.0.4 upgrade, there wasn't much time left.
I had already checked my code and it's fine, my hack is gone and yours is in place, the rest of the code is clean. Don't understand.
Your code looks pretty standard but I'm checking my php version... get back to you later.