[ticket/12015] Fix variable name and event version

PHPBB3-12015