Skip to content

Commit

Permalink
Prevent counting on null
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Dec 7, 2024
1 parent 65cd13f commit 32b0bb8
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 32b0bb8

Please sign in to comment.