This study was a two-center , randomized , double-blind , placebo-controlled trial for 12 hours in patients 18 years to 80 years of age who were undergoing bunionectomy alone or with hammertoe repair .