[ticket/9657] Define user before injecting

PHPBB3-9657