From and after the passage of this act it shall be unlawful for any director or member of the board of control of school districts, in any city of the second class within this commonwealth, to hold the office of secretary of said board, or be employed by said board, while a member thereof, in any capacity in which any compensation is attached.
24 P.S. § 188