Skip to content

Commit

Permalink
Merge pull request #100 from SergioMendolia/main
Browse files Browse the repository at this point in the history
Prevent counting on null
  • Loading branch information
ewilan-riviere authored Dec 8, 2024
2 parents 65cd13f + 32b0bb8 commit 18a63ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formats/Mobi/Parser/MobiParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function get(int $record, bool $asArray = false): array|string|null
{
$data = $this->getRecordData($record);

if ($asArray) {
if ($asArray || $data === null) {
return $data;
}

Expand Down

0 comments on commit 18a63ee

Please sign in to comment.