[ticket/11405] Fix "only variables should be passed by reference"

PHPBB3-11405