Fix PHP Error when no code type filter is specified