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

Bug: Warning: Undefined array key 2 in Fam.php #62

Open
stuntdawg opened this issue Oct 26, 2024 · 2 comments
Open

Bug: Warning: Undefined array key 2 in Fam.php #62

stuntdawg opened this issue Oct 26, 2024 · 2 comments
Labels
sweep Sweep your software chores

Comments

@stuntdawg
Copy link

Details

No response

@stuntdawg stuntdawg added the sweep Sweep your software chores label Oct 26, 2024
Copy link
Contributor

sweep-ai bot commented Oct 26, 2024

❌ The ticket to PR workflow is no longer supported. We have moved to a new chat interface in private beta. Please contact us at team@sweep.dev to try it out.

📖 For more information on how to use Sweep, please read our documentation.

Tracking ID: e2165c0ebb

@stuntdawg
Copy link
Author

All I did was load the .ged file and immediately get this:

Warning: Undefined array key 2 in /../vendor/liberu-genealogy/php-gedcom/src/Parser/Fam.php on line: 93

the specific lines are:

            case 'NCHI':
                $fam->setNchi(trim((string) $record[2]));
                break;

and I could resolve the issue with this:

            case 'NCHI':
                if(isset($record[2])) $fam->setNchi(trim((string) $record[2]));
                break;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Sweep your software chores
Projects
None yet
Development

No branches or pull requests

1 participant