Fix PHP Fatal error

Cannot create references to elements of a temporary array expression