[ticket/11620] Changed incorrect global variable

PHPBB3-11620