Phase transitions in cosmological models: Temperature vs. curvature