Security generating undefined variable when generating

When generating the source for sec_search_sec_groups I get the error below. I suspect this is bug.