Any elected official of any county, city, town, township or the state shall not be entitled to receive payment of any salary or fees, as fixed by law, covering the period during which such elected official is incarcerated in any penal institution as the result of a sentence by any court upon conviction of any crime, except such pay or fees as may have been earned prior to his or her incarceration. Any public official charged with the duty of paying the salaries and fees of any elected official of any county, city, town, township or the state is prohibited from paying any salary and fees to such elected official while such elected official is incarcerated in any penal institution, excepting such pay or fees as may have been earned prior to his or her incarceration.
IC 5-7-4-1