Fix for Only variables should be passed by reference [PHP requirement]

This is generated as runtime notice. More info here http://stackoverflow.com/questions/6410061/only-variables-can-be-passed-by-reference-error