Fix #532. Adds an intermediate variable to be compatible with php 5.3