Change function call to variable

Need to copy result from function into variable as only variables can be
passed by reference - trying to do so with a function causes a warning
under E_STRICT.