Cal. Health & Safety Code § 17061.5
(c)
(d) Any person found in contempt of a court order or injunction pursuant to Section 17060, or who is convicted pursuant to Section 17061, for a second or subsequent time within a five-year period after a prior finding of contempt, a prior conviction, or the prior issuance of an injunction relating to the enforcement of this chapter, where there are violations that are determined by the trier of fact to be so extensive and of such a nature that the immediate health and safety of residents or the public is endangered and where the extent and nature of the violations are due to the defendant’s habitual neglect of customary maintenance and display a flagrant lack of concern for the health and safety of residents or the public, may be subject to a judgment for reasonable enforcement costs, including investigative costs, court costs, and attorney’s fees, and punishable by a fine not exceeding six thousand dollars ($6,000) and by imprisonment for not less than six months, but not exceeding one year, for each violation or day of a continuing violation, if the trier of fact finds at least three serious violations of the following categories of violations are involved: