Fixed php syntax errors