No park commissioner, and no solicitor acting for said commission, and no person exercising any office, or holding any appointment under such commission, shall receive, either directly or indirectly, any compensation for any service rendered to any party having any claim of any kind, whether for land damages, or in any other manner arising against said commission, or the city, excepting only the proper salary or compensation, if any, attached to his office, and any offense against the provisions of this section shall be deemed a misdemeanor, and punishable by expulsion from office.
53 P.S. § 16487