Fixing php warning see #6122
Merge pull request #25 from jmontoyaa/1.9.x

Fixing php warning see #6122