Better PHP formatting
Bug fix.

Sloppy work Stephen.