FPDF Update and minor fixes

less PHP warnings due to FPDF update and two small changes in the PHP code