Fixing PHP 5.4 strict standards error

PHP 5.4 returns following error when trying to pass array_pop() output directly as another argument: "Only variables should be passed by reference"

Using a middle variable solves the issue.