fix for "Only variables should be passed by reference" error

A fix for "Only variables should be passed by reference" error on PHP 5.3.26.