Fix PHP warning on items upload