Created $keys variable to be passed by reference to stop PHP warning being shown.
Merge pull request #292 from k-int/7.x

Created $keys variable