Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.1

Bug #13673 OCCU not an array
Submitted: 2008-04-14 09:55 UTC
From: jerry1970 Assigned: kguest
Status: Closed Package: Genealogy_Gedcom (version 1.0.0)
PHP Version: 5.2.5 OS:
Roadmaps: 1.0.1    
Subscription  


 [2008-04-14 09:55 UTC] jerry1970 (Jerry Van Kooten)
Description: ------------ An individual can have more than one OCCU record. In the file Parses.php, line 330 is this: @preg_replace('/\d OCCU (.*)/US', '$1', $this->_GedcomIndividualsTree[$i][$this->_tag($this->_GedcomIndividualsTree[$i], 'OCCU')]), and should be this: $this->_arrayTag($this->_GedcomIndividualsTree[$i], 'OCCU'), In Individual.php, change this declaration: var $Occupation = ''; to: var $Occupation = array();

Comments

 [2008-04-17 13:58 UTC] doconnor (Daniel O'Connor)
Jerry, I don't suppose you are able to write a quick test for this one? That way when it gets fixed, it'll stay fixed
 [2008-09-05 21:25 UTC] kguest (Ken Guest)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. ran adapted code on a modified [& personal] family data-file. It's working well. will add a testfile when I can ;-)