[ticket/13358] Do not pass variables by reference

PHPBB3-13358