[ticket/12015] Fix variable name and event version

PHPBB3-12015
Merge pull request #1884 from nickvergessen/ticket/12015-2

[ticket/12015] Fix variable name and event version