[ticket/11768] Removed unused vars

PHPBB3-11768