Attempt at PHP syntax error fix