Fix PHP notices.