Skip to content

Commit

Permalink
Fixed an issue with the parsing of "spp."
Browse files Browse the repository at this point in the history
  • Loading branch information
Naim Matasci committed Jun 27, 2014
1 parent 02659ed commit bf1049f
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -41,6 +41,10 @@ public function __construct( $norm, $search_text) {
$this->genus = $cnts->scientificName->details[0]->genus->string;
if(isset($cnts->scientificName->details[0]->infraspecies)) {
foreach($cnts->scientificName->details[0]->infraspecies as $infra) {
if (is_null($infra)) {
$infra=$cnts->scientificName->details[0]->ignored->infraspecies;
}
if (is_null($infra)) { continue; }
$this->infraspecies[]=array($infra->rank, $infra->string);
}
}
Expand Down

0 comments on commit bf1049f

Please sign in to comment.