Fixing a php warning: Only variables should be passed by reference.