Correcting for misc php errors / warnings in proposal code