mrkrstphr / php-gedcom

UNMAINTAINED - A library for reading and writing GEDCOM files in PHP.
MIT License
38 stars 46 forks source link

Issue with Parser/subm #13

Closed romainbriand closed 10 years ago

romainbriand commented 10 years ago

First of all, thank you for your GREAT work!

Just to let you know, I've found an issue in the parser. The name of the author could be left blank. In this case (it happens when i create a gedcom file export of my GRAMPS database), the parser returns an exception because $record[2] is undefined. I think you should test if it is empty.

Thank you again :)

Romain

romainbriand commented 10 years ago

https://github.com/mrkrstphr/php-gedcom/blob/master/library/PhpGedcom/Parser/Subm.php#L53

mrkrstphr commented 10 years ago

Thanks for the bug report! It has been fixed.