Fix PHP notice for a template