Ok, so B&B haven't gotten married... yet. MUAHAHAHAH. No, but really, you may be getting confused with the season 4 finale, which involved *semi-spoiler, I guess* a funky dream/hallucination thingy. Look it up or watch it if you want to know more... yeah. :D
SPOILER Haha. did u just watch season 4 finale (The End of the Beginning)? if so then i understand your confusion. but no, it was a hallucination of Booth's, while he was in a coma. hope this helps