Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 8c7be39

Browse files
author
Flo Faber
committed
Fixed #17 (again)
1 parent 7f67f94 commit 8c7be39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function get_picture(string $uri, bool $include_binary = true)
226226
do{
227227

228228
$picture_data = $this->mphpd->cmd("readpicture", [$uri, $offset]);
229-
if($picture_data === false){ return [ "size" => 0, "type" => null, "binary" => null ]; }
229+
if($picture_data === false || $picture_data === []){ return [ "size" => 0, "type" => null, "binary" => null ]; }
230230

231231
$size = $picture_data["size"];
232232
$type = $picture_data["type"];

0 commit comments

Comments
 (0)