Fixed undefined index in template php in og_ref