fix forum activities/sql error 2.4+