[ticket/12487] Fix missing variable

PHPBB3-12487