Fix for php warnings
Merge pull request #1 from castiel/master

Minor Warning fixes