CRM-13487 declare  as global earlier
Merge pull request #43 from eileenmcnaughton/CRM-13487

CRM-13487 declare user as global earlier