Removed most PHP warnings
Merge remote-tracking branch 'origin/master'