Fix for phpbb 3.1 breaks older versions