Do you have a list of global variables that you are using and what they are used for?
Hard to tell what is going on here because you didn’t document them in one place. See this tutorial.
I suspect you may be using global variable ‘gf’ somewhere else in your project and it is interfering with the new functionality you are adding.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz