Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoreTypes #198

Open
DummerJunge opened this issue Mar 20, 2020 · 0 comments
Open

ignoreTypes #198

DummerJunge opened this issue Mar 20, 2020 · 0 comments

Comments

@DummerJunge
Copy link

Hello, I wanted to ignore e.g. the mobile numbers, because I'm no programmer and break 2 maybe unwated, no fork and pull ...

See <--- in this excerpt from Converter.php

        $ignoreTypes = $this->config['ignoreTypes'] ?? []; // <---
        $phoneTypes = $this->config['phoneTypes'] ?? [];

        foreach ($card->TEL as $key => $number) {
            // format number
            $number = $this->convertPhonenumber($number);
            // get type
            $type = 'other';
            $telTypes = strtoupper($card->TEL[$key]->parameters['TYPE'] ?? '');
            
	    foreach ($ignoreTypes as $ignoreType) { // <---
                if (strpos($telTypes, strtoupper($ignoreType)) !== false) {
                    break 2;
                }
            }

Thanks, regards D.J.

blacksenator added a commit to blacksenator/carddav2fb that referenced this issue Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants