Skip to content

Commit

Permalink
AdvMD: small array access fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitz-ilias committed Aug 16, 2023
1 parent e810b0c commit 98a2971
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ilAdvancedMDParser extends ilSaxParser implements ilSaxSubsetParser
protected array $record_ids = [];

// local adv md record support
protected ?array $local_record = [];
protected ?array $local_record = null;
protected array $local_rec_map = [];
protected array $local_rec_fields_map = [];

Expand Down Expand Up @@ -115,7 +115,7 @@ public function handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs)
(string) $a_attribs['id'],
(string) $a_attribs['sub_type'],
(int) $a_attribs['sub_id'],
(int) $a_attribs['local_rec_id']
isset($a_attribs['local_rec_id']) ? (int) $a_attribs['local_rec_id'] : null
);
break;
}
Expand Down

0 comments on commit 98a2971

Please sign in to comment.