Skip to content

Commit fc8e5ad

Browse files
no parsing of supplemental records that lack id and name (only a few)
1 parent db71105 commit fc8e5ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mesh/mesh.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ private function qualifiers(){
302302
*/
303303
private function makeSupplementaryRecord($sup_record_arr){
304304
//get the UI of the supplementary record
305+
306+
if(!isset($sup_record_arr['UI'][0]) or !isset($sup_record_arr['NM'][0])) return;
307+
305308
$sr_ui = $sup_record_arr["UI"][0];
306309
$sr_res = $this->getNamespace().$sr_ui;
307310
$sr_label = $sup_record_arr['NM'][0];

0 commit comments

Comments
 (0)