Fixed Runtime notice: #136 (PHP 5.4.7)

Using a temp variable fixes this bug for me.