Skip to content

Contacts list warns on any country that isn't a known country code #430

Closed

Description

@caseysoftware

Found on the dev-6.0.0 branch (local, at 9bd3a1e0) during the lib/ cleanup. It may be on master too: the same code is there.

modules/contacts/vw_idx_contacts.php L139 looks up $countries[$carr[$z][$x][$key]] without checking that the key exists. Contacts whose contact_country is free text (vCard imports store e.g. USA; older data may hold full names) raise "Undefined array key" on every contacts list load.

Fix: $countries[$value] ?? $value.

Activity

  1. added
    php
    on Oct 21, 2026
  2. added 2 commits that reference this issue on Oct 21, 2026
    9e80118
    32bd7a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    php

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions