(1) Aggravated unlawful use of a weapon is a Class 4 felony; a second or subsequent offense is a Class 2 felony for which the person shall be sentenced to a term of imprisonment of not less than 3 years and not more than 7 years, except as provided for in Section 5-4.5-110 of the Unified Code of Corrections.