In the absence of a permanent or preliminary injunction or temporary restraining order of a court, the bringing or pendency of any action alone, heretofore, or hereafter brought, to defeat or enjoin the disbursement by public officers of public funds to the persons, uses, or purposes for which they are appropriated or set apart, including the payment of the salaries and wages of all officers and employees of the State, or of any county, city, village, town or other municipality of the State, shall in no way change the liability of any public officer in the disbursement of public funds on account of any notice of matters contained in the pleadings in any action, but such liability shall remain the same, insofar as the bringing or pendency of any such action alone is concerned, as if no such action had been brought.
735 ILCS 5/2-1903