This pronunciation is considered more informal and is more common in conversational speech. In formal writing or speaking, the "t" sound is usually pronounced, making it "oh-fən".
However, both pronunciations are considered correct and widely accepted in English.