Fix forgotten use statement
Fix PHP Strict Standards

Only variables should be passed by reference
Fix undefined