Fix PHP notices